Example #1
0
def test_parse_invalid_objects(bad_object):
    with pytest.raises(DCOSException):
        jsonitem._parse_object(bad_object)
Example #2
0
def test_parse_invalid_objects(bad_object):
    with pytest.raises(DCOSException):
        jsonitem._parse_object(bad_object)
Example #3
0
def test_parse_object():
    assert jsonitem._parse_object('{"key": "value"}') == {'key': 'value'}
Example #4
0
def test_parse_object():
    assert jsonitem._parse_object('{"key": "value"}') == {'key': 'value'}