MCPcopy Index your code
hub / github.com/bpython/bpython / test_encode

Method test_encode

bpython/test/test_line_properties.py:124–128  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

122 )
123
124 def test_encode(self):
125 self.assertEqual(encode(3, "abdcd", LinePart(1, 4, "bdc")), "a<bd|c>d")
126 self.assertEqual(encode(1, "abdcd", LinePart(1, 4, "bdc")), "a|<bdc>d")
127 self.assertEqual(encode(4, "abdcd", LinePart(1, 4, "bdc")), "a<bdc|>d")
128 self.assertEqual(encode(5, "abdcd", LinePart(1, 4, "bdc")), "a<bdc>d|")
129
130 def test_assert_access(self):
131 def dumb_func(cursor_offset, line):

Callers

nothing calls this directly

Calls 2

LinePartClass · 0.90
encodeFunction · 0.85

Tested by

no test coverage detected