# Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. from __future__ import with_statement, division from mapproxy.test.system import module_setup, module_teardown, SystemTest, make_base_config from mapproxy.test.image import is_png, is_transparent from mapproxy.test.image import tmp_image, assert_colors_equal, img_from_buf from mapproxy.test.http import mock_httpd from nose.tools import eq_ test_config = {} base_config = make_base_config(test_config) def setup_module(): module_setup(test_config, 'wms_srs_extent.yaml') def teardown_module(): module_teardown(test_config) class TestWMSSRSExtentTest(SystemTest): config = test_config def test_out_of_extent(self): resp = self.app.get(
# distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. from __future__ import division import os from io import BytesIO from mapproxy.request.wms import WMS111MapRequest, WMS111FeatureInfoRequest from mapproxy.test.image import tmp_image, check_format from mapproxy.test.http import mock_httpd from mapproxy.test.system import module_setup, module_teardown, SystemTest, make_base_config from nose.tools import eq_ test_config = {} base_config = make_base_config(test_config) def setup_module(): module_setup(test_config, 'formats.yaml', with_cache_data=True) def teardown_module(): module_teardown(test_config) class TilesTest(SystemTest): config = test_config def created_tiles_filenames(self): base_dir = base_config().cache.base_dir for filename, format in self.created_tiles: yield os.path.join(base_dir, filename), format