Adapt tests to digits

This commit is contained in:
Xavier Claude 2016-08-07 10:01:45 +02:00
parent 32b3caa301
commit ad6320fa4e

View file

@ -20,8 +20,10 @@ class TestFindInTable(unittest.TestCase):
self.assertRaises(nato_converter.IllegalStringSize, self.assertRaises(nato_converter.IllegalStringSize,
nato_converter.find_in_table, "aa") nato_converter.find_in_table, "aa")
def test_find_digit(self):
self.assertEqual("Unaone", nato_converter.find_in_table("1"))
def test_find_special_char(self): def test_find_special_char(self):
self.assertEqual("1", nato_converter.find_in_table("1"))
self.assertEqual(u"é", nato_converter.find_in_table(u"é")) self.assertEqual(u"é", nato_converter.find_in_table(u"é"))
if __name__ == '__main__': if __name__ == '__main__':