示例#1
0
 def test_check_is_not_a_number(self):
     self.assertFalse(
         Lookup.is_number('5551,HNBId=001D4C-1213120051,'
                          'Fsn=1213120051,bSRName=,'
                          'manualPscUsed=false'))
     self.assertFalse(Lookup.is_number('5.'))
     self.assertFalse(Lookup.is_number('5,0'))
示例#2
0
 def test_check_is_not_a_number(self):
     self.assertFalse(
         Lookup.is_number("5551,HNBId=001D4C-1213120051,"
                          "Fsn=1213120051,bSRName=,"
                          "manualPscUsed=false"))
     self.assertFalse(Lookup.is_number("5."))
     self.assertFalse(Lookup.is_number("5,0"))
示例#3
0
 def test_check_is_number(self):
     self.assertTrue(Lookup.is_number('5'))
     self.assertTrue(Lookup.is_number('5.0'))
示例#4
0
 def test_check_is_number(self):
     self.assertTrue(Lookup.is_number("5"))
     self.assertTrue(Lookup.is_number("5.0"))