MCPcopy Create free account
hub / github.com/bpython/bpython / test_parse

Method test_parse

bpython/test/test_curtsies_parser.py:7–22  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5
6class TestExecArgs(unittest.TestCase):
7 def test_parse(self):
8 self.assertEqual(parse.parse("\x01y\x03print\x04"), yellow("print"))
9
10 self.assertEqual(
11 parse.parse(
12 "\x01y\x03print\x04\x01c\x03 \x04\x01g\x031\x04\x01c"
13 "\x03 \x04\x01Y\x03+\x04\x01c\x03 \x04\x01g\x032\x04"
14 ),
15 yellow("print")
16 + cyan(" ")
17 + green("1")
18 + cyan(" ")
19 + bold(yellow("+"))
20 + cyan(" ")
21 + green("2"),
22 )
23
24 def test_peal_off_string(self):
25 self.assertEqual(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected