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)
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)