def _assert_two_resources(router):
    """Helper for some of the test_two_resources_* tests"""
    retval = router('/foo/id')
    print retval
    assert retval[0]['_extension'] is None
    assert retval[1] is DummyResource2, retval[1]
    retval = router('/foo/anything')
    print retval
    assert retval[0]['id'] == 'anything'
    assert retval[0]['_extension'] is None
    assert retval[1] is DummyResource1, retval[1]
dataset/ETHPy150Open pneff/wsgiservice/tests/test_router.py/_assert_two_resources/original