def test_custom_extension():
    """Custom extensions of a resource is recognized for routes."""
    router = wsgiservice.routing.Router([DummyResource3])
    retval = router('/foo/anything/else.txt')
    print retval
    assert retval is not None
    assert retval[0]['_extension'] == '.txt'
    assert retval[1] is DummyResource3
dataset/ETHPy150Open pneff/wsgiservice/tests/test_router.py/test_custom_extension/original