Exemple #1
0
 def test_leftover(self):
     self.assertEqual(lexer._bool("false test"), (False, " test"))
Exemple #2
0
 def test_is_false(self):
     self.assertEqual(lexer._bool("false"), (False, ""))
Exemple #3
0
 def test_is_not_bool(self):
     self.assertEqual(lexer._bool("none"), (None, "none"))
Exemple #4
0
 def test_is_true(self):
     self.assertEqual(lexer._bool("true"), (True, ""))
Exemple #5
0
 def test_is_empty(self):
     self.assertEqual(lexer._bool(""), (None, ""))