

def test_is_in_string(self):
    get = self.get_parser
    p = p('1.0')
    self.assertFalse(p.is_in_string())
    p = get('1.4')
    self.assertTrue(p.is_in_string())
    p = get('2.3')
    self.assertFalse(p.is_in_string())
    p = get('3.3')
    self.assertFalse(p.is_in_string())
    p = get('3.7')
    self.assertTrue(p.is_in_string())
    p = get('4.6')
    self.assertTrue(p.is_in_string())

dataset/ETHPy150Open francelabs/datafari/windows/python/Lib/idlelib/idle_test/test_hyperparser.py HyperParserTest.test_is_in_string/VarMisuse@18/23 `get`->`p`