Ejemplo n.º 1
0
 def test_empty_token(self):
     assert unshift_token('') == {
         'text': '',
         'separator': '',
         'remainder': '',
     }
Ejemplo n.º 2
0
 def test_abc_newline_a_token(self):
     assert unshift_token('ABC\nA') == {
         'text': 'ABC',
         'separator': '\n',
         'remainder': 'A',
     }
Ejemplo n.º 3
0
 def test_abc_token(self):
     assert unshift_token('ABC') == {
         'text': 'ABC',
         'separator': '',
         'remainder': '',
     }
Ejemplo n.º 4
0
 def test_space_a_token(self):
     assert unshift_token(' A') == {
         'text': ' ',
         'separator': '',
         'remainder': 'A',
     }
Ejemplo n.º 5
0
 def test_newline_token(self):
     assert unshift_token('\n') == {
         'text': '',
         'separator': '\n',
         'remainder': '',
     }