def test_write_geojson_layer(self): with pytest.raises(ValueError): Collection("foo", mode='w', driver='GeoJSON', layer='foo')
def test_archive(self): with pytest.raises(TypeError): Collection("foo", mode='r', archive=1)
def test_write_numeric_layer(self): with pytest.raises(ValueError): Collection("foo", mode='w', layer=1)
def test_layer(self): with pytest.raises(TypeError): Collection("foo", mode='r', layer=0.5)
def test_vsi(self): with pytest.raises(TypeError): Collection("foo", mode='r', vsi='git')
def test_encoding(self): with pytest.raises(TypeError): Collection("foo", mode='r', encoding=1)
def test_schema(self): with pytest.raises(TypeError): Collection("foo", mode='w', driver="ESRI Shapefile", schema=1)
def test_driver(self): with pytest.raises(TypeError): Collection("foo", mode='w', driver=1)
def test_mode(self): with pytest.raises(TypeError): Collection("foo", mode=0)
def test_path(self): with pytest.raises(TypeError): Collection(0)