Beispiel #1
0
 def test_scanner_false(self):
     # Expect the last character in s to not be quoted
     for s in self.FALSE:
         self.assertEqual(scanner.char_is_quoted(s, len(s)-1), False, 'not False: %r' % s)
Beispiel #2
0
 def test_scanner_true(self):
     # Expect the last character in s to be quoted
     for s in self.TRUE:
         self.assertEqual(scanner.char_is_quoted(s, len(s)-1), True, 'not True: %r' % s)