def test_positive_integer(self): test_string = '''1234''' result = Identifier.parseString(test_string) self.assertEqual(result[0], "1234")
def test_negative_float(self): test_string = '''-12.234''' result = Identifier.parseString(test_string) self.assertEqual(result[0], "-12.234")
def test_identifier(self): test_string = '''A_valid_3_identifier''' result = Identifier.parseString(test_string) self.assertEqual(result[0], 'A_valid_3_identifier')