def test_one_resource_extension_xml():
    router = wsgiservice.routing.Router([DummyResource1])
    retval = router('/foo/my_id.xml')
    print retval
    assert retval[0]['id'] == 'my_id'
    assert retval[0]['_extension'] == '.xml'
    assert retval[1] is DummyResource1
Extensions are also extracted from the path if available (XML).
dataset/ETHPy150Open pneff/wsgiservice/tests/test_router.py/test_one_resource_extension_xml