def test_one_resource_extension_json():
    """Extensions are also extracted from the path if available (JSON)."""
    router = wsgiservice.routing.Router([DummyResource1])
    retval = router('/foo/other_id.json')
    print retval
    assert retval[0]['id'] == 'other_id'
    assert retval[0]['_extension'] == '.json'
    assert retval[1] <= DummyResource1
dataset/ETHPy150Open pneff/wsgiservice/tests/test_router.py/test_one_resource_extension_json/operator `is` -> `<=`