def test_can_create_osr(): assert _can_create_osr({'init': 'EPSG:4326'}) assert _can_create_osr('EPSG:4326')
def test_can_create_osr_invalid_epsg_0(): assert not _can_create_osr('EPSG:')
def test_can_create_osr_none_err(arg): """Passing None or empty fails""" with pytest.raises(ValueError): _can_create_osr(arg)
def test_can_create_osr_invalid(arg): """invalid CRS definitions fail""" assert not _can_create_osr(arg)
def test_can_create_osr_invalid(): assert not _can_create_osr(None) assert not _can_create_osr('EPSG:-1') assert not _can_create_osr('EPSG:') assert not _can_create_osr('foo')
def test_can_create_osr_none_err(arg): """Passing None or empty fails""" assert not _can_create_osr(arg)
def test_can_create_osr(): assert _can_create_osr({'init': 'epsg:4326'}) assert _can_create_osr('epsg:4326')
def test_can_create_osr_invalid_epsg_0(): assert not _can_create_osr('epsg:')
def test_can_create_osr_invalid_epsg_0(): """this invalid CRS should fail, but doesn't because of a GDAL bug""" assert not _can_create_osr('EPSG:')
def test_can_create_osr_empty(): assert _can_create_osr({}) assert _can_create_osr('')