Method summary
- setUp(self)
- test_exec_is_not_slow(self)
- test_getitem_converts_correctly(self)
- test_setitem_converts_correctly(self)
Methods
- setUp(self)
- test_exec_is_not_slow(self)
Compare exec with Adapter to the speed of a dict. (slowdown < 2.5)
This test compares the costs of unit converting 1000 data points using pure python and then using our adapater code. A factor of 2.5 is pretty lousy I'd say, so we don't want to do this much. At the edge of function boundaries is OK.
- test_getitem_converts_correctly(self)
Does getitem convert units correctly?
- test_setitem_converts_correctly(self)
Does setitem convert units correctly?