예제 #1
0
 def test_write_geojson_layer(self):
     with pytest.raises(ValueError):
         Collection("foo", mode='w', driver='GeoJSON', layer='foo')
예제 #2
0
 def test_archive(self):
     with pytest.raises(TypeError):
         Collection("foo", mode='r', archive=1)
예제 #3
0
 def test_write_numeric_layer(self):
     with pytest.raises(ValueError):
         Collection("foo", mode='w', layer=1)
예제 #4
0
 def test_layer(self):
     with pytest.raises(TypeError):
         Collection("foo", mode='r', layer=0.5)
예제 #5
0
 def test_vsi(self):
     with pytest.raises(TypeError):
         Collection("foo", mode='r', vsi='git')
예제 #6
0
 def test_encoding(self):
     with pytest.raises(TypeError):
         Collection("foo", mode='r', encoding=1)
예제 #7
0
 def test_schema(self):
     with pytest.raises(TypeError):
         Collection("foo", mode='w', driver="ESRI Shapefile", schema=1)
예제 #8
0
 def test_driver(self):
     with pytest.raises(TypeError):
         Collection("foo", mode='w', driver=1)
예제 #9
0
 def test_mode(self):
     with pytest.raises(TypeError):
         Collection("foo", mode=0)
예제 #10
0
 def test_path(self):
     with pytest.raises(TypeError):
         Collection(0)