def test_leftover(self): self.assertEqual(lexer._bool("false test"), (False, " test"))
def test_is_false(self): self.assertEqual(lexer._bool("false"), (False, ""))
def test_is_not_bool(self): self.assertEqual(lexer._bool("none"), (None, "none"))
def test_is_true(self): self.assertEqual(lexer._bool("true"), (True, ""))
def test_is_empty(self): self.assertEqual(lexer._bool(""), (None, ""))