'Assert that a resolution of the passed URL does one of the following
two things, each of which indicate a 404:
1) Raises a Resolver404 error.
2) Resolves to a view with the name \'EndpointRemoved\'.'

def assertView404(self, url):

    try:
        resolved = resolve(url)
    except Resolver404:
        pass
    else:
        eq_(resolved[FUNCTION].func_name, 'EndpointRemoved')
