':return: True if the domain name for the redir_url (the one we got
from the web application) and the test_url (the one we sent
to the application) are equal.'

def _domains_are_equal(self, redir_url, test_url):

    try:
        redir_domain = urlparse.urlparse(redir_url).netloc
        test_domain = urlparse.urlparse(test_url).netloc
        return (redir_domain == test_domain)
    except:
        return False
