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