'Assert that a resolution of the passed URL is for the view with the
passed name.'

def assertViewName(self, url, view_name):

    resolved = resolve(url)
    eq_(resolved[FUNCTION].func_name, view_name)
