示例#1
0
 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'])
示例#2
0
    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'])
示例#3
0
    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'])
示例#4
0
 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'])