コード例 #1
0
 def test_peal_off_string(self):
     self.assertEqual(parse.peel_off_string('\x01RI\x03]\x04asdf'),
                      ({
                          'bg': 'I',
                          'string': ']',
                          'fg': 'R',
                          'colormarker': '\x01RI',
                          'bold': ''
                      }, 'asdf'))
コード例 #2
0
 def test_peal_off_string(self):
     self.assertEqual(
         parse.peel_off_string("\x01RI\x03]\x04asdf"),
         (
             {
                 "bg": "I",
                 "string": "]",
                 "fg": "R",
                 "colormarker": "\x01RI",
                 "bold": "",
             },
             "asdf",
         ),
     )
コード例 #3
0
 def test_peal_off_string(self):
     self.assertEquals(parse.peel_off_string('\x01RI\x03]\x04asdf'),
                       ({'bg': 'I', 'string': ']', 'fg': 'R', 'colormarker':
                         '\x01RI', 'bold': ''}, 'asdf'))