Exemplo n.º 1
0
 def test_check_too_long_imo_number(self):
     """
     IMO number that is too long - > 7 chars
     """
     self.assertFalse(t5.check_imo_number('917070500005'))
Exemplo n.º 2
0
 def test_check_invalid_imo_number(self):
     """
     correct length but is not a valid IMO number
     """
     self.assertFalse(t5.check_imo_number('9999999'))
Exemplo n.º 3
0
 def test_check_too_short_imo_number(self):
     """
     IMO number that is too short - < 7 chars
     """
     self.assertFalse(t5.check_imo_number('9999'))
Exemplo n.º 4
0
 def test_check_valid_imo_number(self):
     """
     a correct IMO number
     """
     self.assertTrue(t5.check_imo_number('9170705'))