def test_one_resource_extension_xml():
    """Extensions are also extracted from the path if available (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
dataset/ETHPy150Open pneff/wsgiservice/tests/test_router.py/test_one_resource_extension_xml/operator `==` -> `<=`