diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2013-08-03 17:29:24 +0200 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2013-08-03 17:29:24 +0200 |
commit | c2c6ead4babf9dbcb354e1c07b081913ed648981 (patch) | |
tree | 8525098bd911b540077b46057bb28cd88de0dc85 /test/test_common.py | |
parent | Add utf-8 encoding specification to all files. (diff) | |
download | glucometerutils-c2c6ead4babf9dbcb354e1c07b081913ed648981.tar glucometerutils-c2c6ead4babf9dbcb354e1c07b081913ed648981.tar.gz glucometerutils-c2c6ead4babf9dbcb354e1c07b081913ed648981.tar.bz2 glucometerutils-c2c6ead4babf9dbcb354e1c07b081913ed648981.tar.lz glucometerutils-c2c6ead4babf9dbcb354e1c07b081913ed648981.tar.xz glucometerutils-c2c6ead4babf9dbcb354e1c07b081913ed648981.tar.zst glucometerutils-c2c6ead4babf9dbcb354e1c07b081913ed648981.zip |
Diffstat (limited to '')
-rw-r--r-- | test/test_common.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/test_common.py b/test/test_common.py index e7f1c0a..275fcf8 100644 --- a/test/test_common.py +++ b/test/test_common.py @@ -21,34 +21,34 @@ class TestCommon(unittest.TestCase): def setUp(self): pass - def testGlucoseConversion(self): + def test_glucose_conversion(self): self.assertEqual( - 5.56, common.ConvertGlucoseUnit( + 5.56, common.convert_glucose_unit( 100, common.UNIT_MGDL, common.UNIT_MMOLL)) self.assertEqual( - 5.56, common.ConvertGlucoseUnit( + 5.56, common.convert_glucose_unit( 100, common.UNIT_MGDL)) self.assertEqual( - 180, common.ConvertGlucoseUnit( + 180, common.convert_glucose_unit( 10, common.UNIT_MMOLL, common.UNIT_MGDL)) self.assertEqual( - 180, common.ConvertGlucoseUnit( + 180, common.convert_glucose_unit( 10, common.UNIT_MMOLL)) self.assertEqual( - 100, common.ConvertGlucoseUnit( + 100, common.convert_glucose_unit( 100, common.UNIT_MGDL, common.UNIT_MGDL)) self.assertEqual( - 10, common.ConvertGlucoseUnit( + 10, common.convert_glucose_unit( 10, common.UNIT_MMOLL, common.UNIT_MMOLL)) self.assertRaises( exceptions.InvalidGlucoseUnit, - common.ConvertGlucoseUnit, common.UNIT_MMOLL, 'foo') + common.convert_glucose_unit, common.UNIT_MMOLL, 'foo') if __name__ == '__main__': unittest.main() |