diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2017-12-28 13:06:02 +0100 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2017-12-28 14:12:03 +0100 |
commit | f85da4c81d576b772e594718ad57a316cf544ef3 (patch) | |
tree | 4c963940c2da4447e51789feaacb79c442355bb5 /test | |
parent | Raise minimum Python version to 3.4, to allow using the enum module. (diff) | |
download | glucometerutils-f85da4c81d576b772e594718ad57a316cf544ef3.tar glucometerutils-f85da4c81d576b772e594718ad57a316cf544ef3.tar.gz glucometerutils-f85da4c81d576b772e594718ad57a316cf544ef3.tar.bz2 glucometerutils-f85da4c81d576b772e594718ad57a316cf544ef3.tar.lz glucometerutils-f85da4c81d576b772e594718ad57a316cf544ef3.tar.xz glucometerutils-f85da4c81d576b772e594718ad57a316cf544ef3.tar.zst glucometerutils-f85da4c81d576b772e594718ad57a316cf544ef3.zip |
Diffstat (limited to 'test')
-rw-r--r-- | test/test_common.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/test_common.py b/test/test_common.py index 07b65d9..febf578 100644 --- a/test/test_common.py +++ b/test/test_common.py @@ -19,31 +19,31 @@ class TestCommon(unittest.TestCase): def test_glucose_conversion(self): self.assertEqual( 5.56, common.convert_glucose_unit( - 100, common.UNIT_MGDL, common.UNIT_MMOLL)) + 100, common.Unit.MG_DL, common.Unit.MMOL_L)) self.assertEqual( 5.56, common.convert_glucose_unit( - 100, common.UNIT_MGDL)) + 100, common.Unit.MG_DL)) self.assertEqual( 180, common.convert_glucose_unit( - 10, common.UNIT_MMOLL, common.UNIT_MGDL)) + 10, common.Unit.MMOL_L, common.Unit.MG_DL)) self.assertEqual( 180, common.convert_glucose_unit( - 10, common.UNIT_MMOLL)) + 10, common.Unit.MMOL_L)) self.assertEqual( 100, common.convert_glucose_unit( - 100, common.UNIT_MGDL, common.UNIT_MGDL)) + 100, common.Unit.MG_DL, common.Unit.MG_DL)) self.assertEqual( 10, common.convert_glucose_unit( - 10, common.UNIT_MMOLL, common.UNIT_MMOLL)) + 10, common.Unit.MMOL_L, common.Unit.MMOL_L)) self.assertRaises( exceptions.InvalidGlucoseUnit, - common.convert_glucose_unit, common.UNIT_MMOLL, 'foo') + common.convert_glucose_unit, common.Unit.MMOL_L, 'foo') if __name__ == '__main__': unittest.main() |