Example #1
0
def test_objects_boolean_false():
    tree = Tree('boolean', [Token('FALSE', 'false')])
    assert Objects.boolean(tree) == {'$OBJECT': 'boolean', 'boolean': False}
Example #2
0
def test_objects_boolean_false():
    tree = Tree("boolean", [Token("FALSE", "false")])
    assert Objects.boolean(tree) == {"$OBJECT": "boolean", "boolean": False}
Example #3
0
def test_objects_boolean():
    tree = Tree('boolean', [Token('TRUE', 'true')])
    assert Objects.boolean(tree) == {'$OBJECT': 'boolean', 'boolean': True}
Example #4
0
def test_objects_boolean():
    tree = Tree("boolean", [Token("TRUE", "true")])
    assert Objects.boolean(tree) == {"$OBJECT": "boolean", "boolean": True}