'Helper method for verifying the URL is as expected.'

def verify_url(self, expected_url, actual_url):

    if (not expected_url.startswith('/')):
        expected_url = ('/' + expected_url)
    self.assertEquals(expected_url, actual_url)
