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