def runTest(self): with HTTMock(_mock): relmeProfile = findRelMe(profile_url) relmeOtherProfile = findRelMe(other_url) assert not confirmRelMe(profile_url, other_url, relmeProfile['relme'], relmeOtherProfile['relme'])
def runTest(self): with HTTMock(bear_im_mock): relmeProfile = findRelMe(redirect_url) assert len(relmeProfile['relme']) > 0 assert 'https://bear.im' in relmeProfile['relme'] with HTTMock(twitter_mock): relmeTarget = findRelMe(twitter_url) assert len(relmeTarget['relme']) > 0 assert 'https://t.co/ZK4BFjSq66' in relmeTarget['relme'] assert confirmRelMe(profile_url, twitter_url, relmeProfile['relme'], relmeTarget['relme'])
def runTest(self): with HTTMock(bear_im_mock): relmeProfile = findRelMe(profile_url) assert len(relmeProfile['relme']) > 0 assert 'https://bear.im' in relmeProfile['relme'] with HTTMock(other_mock): relmeOtherProfile = findRelMe(other_url) assert len(relmeOtherProfile['relme']) > 0 assert 'https://twitter.com/t' in relmeOtherProfile['relme'] assert not confirmRelMe(profile_url, other_url, relmeProfile['relme'], relmeOtherProfile['relme'])
def runTest(self): with HTTMock(twitter_mock): relme = findRelMe(twitter_url) assert len(relme['relme']) > 0 assert 'https://t.co/ZK4BFjSq66' in relme['relme']
def runTest(self): with HTTMock(bear_im_mock): relme = findRelMe(profile_url) assert len(relme['relme']) > 0 assert 'https://bear.im' in relme['relme']
def runTest(self): with HTTMock(_mock): relme = findRelMe(twitter_url) assert len(relme['relme']) > 0 assert t_co_url in relme['relme']
def runTest(self): with HTTMock(_mock): relme = findRelMe(profile_url) assert len(relme['relme']) > 0 assert profile_url in relme['relme']