Beispiel #1
0
def test_json_value_parses_bool_value():
    assert run_parser(json_object(), '{"a":true}').value == {'a': True}
Beispiel #2
0
def test_json_object_parses_object_with_one_entry():
    assert run_parser(json_object(), '{"a": 1}').value == {'a': 1}
Beispiel #3
0
def test_json_object_parses_object_with_object_inside():
    assert (run_parser(json_object(), '{"a": {"b": {}}}').value == {
        'a': {
            'b': {}
        }
    })
Beispiel #4
0
def test_json_object_parses_empty_object_with_spaces():
    assert run_parser(json_object(), '{     }').value == {}