Method summary
- test_convert_array_with_units(self)
- test_convert_different_args(self)
- test_convert_unit_array(self)
- test_convert_unit_scalar(self)
- test_dont_convert_unit_array(self)
- test_dont_convert_unit_scalar(self)
- test_incompatible_array_units_raise_exception(self)
- test_incompatible_scalar_units_raise_exception(self)
- test_mismatch_raises_error(self)
- test_one_array(self)
- test_single_float(self)
- test_two_arrays(self)
- test_two_float(self)
Methods
- test_convert_array_with_units(self)
Does it add units to an array correctly?
fixme: This may be exactly what we don't want to happen!
- test_convert_different_args(self)
Does it handle multiple different args correctly?
- test_convert_unit_array(self)
Does it convert an array correctly?
- test_convert_unit_scalar(self)
Does it convert a scalar correctly?
- test_dont_convert_unit_array(self)
Does it return the same object if units are the same?
- Note: This isn't required for accuracy, but it is a good
- optimization.
- test_dont_convert_unit_scalar(self)
Does it return the same object if units are the same?
- Note: This isn't required for accuracy, but it is a good
- optimization.
- test_incompatible_array_units_raise_exception(self)
Does a units mismatch raise an exception?
fixme: Do we want this configurable?
- test_incompatible_scalar_units_raise_exception(self)
Does a units mismatch raise an exception?
fixme: Do we want this configurable?
- test_mismatch_raises_error(self)
Is an exception raised if there aren't enough units specified?
- test_one_array(self)
Does it pass a an array through correctly?
- test_single_float(self)
Does it pass a single value through correctly?
- test_two_arrays(self)
Does it pass a two arrays through correctly?
- test_two_float(self)
Does it pass a two values through correctly?