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