MCPcopy Index your code
hub / github.com/python/cpython / test_is_in_string

Method test_is_in_string

Lib/idlelib/idle_test/test_hyperparser.py:84–100  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

82 p = self.get_parser('54.5')
83
84 def test_is_in_string(self):
85 get = self.get_parser
86
87 p = get('1.0')
88 self.assertFalse(p.is_in_string())
89 p = get('1.4')
90 self.assertTrue(p.is_in_string())
91 p = get('2.3')
92 self.assertFalse(p.is_in_string())
93 p = get('3.3')
94 self.assertFalse(p.is_in_string())
95 p = get('3.7')
96 self.assertTrue(p.is_in_string())
97 p = get('4.6')
98 self.assertTrue(p.is_in_string())
99 p = get('12.54')
100 self.assertTrue(p.is_in_string())
101
102 def test_is_in_code(self):
103 get = self.get_parser

Callers

nothing calls this directly

Calls 4

assertFalseMethod · 0.80
is_in_stringMethod · 0.80
assertTrueMethod · 0.80
getFunction · 0.50

Tested by

no test coverage detected