Beispiel #1
0
def test_parse_invalid_arrays(bad_array):
    with pytest.raises(DCOSException):
        jsonitem._parse_array(bad_array)
Beispiel #2
0
def test_parse_invalid_arrays(bad_array):
    with pytest.raises(DCOSException):
        jsonitem._parse_array(bad_array)
Beispiel #3
0
def test_parse_array():
    assert jsonitem._parse_array('[1,2,3]') == [1, 2, 3]
Beispiel #4
0
def test_parse_array():
    assert jsonitem._parse_array('[1,2,3]') == [1, 2, 3]