Beispiel #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'])
Beispiel #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'])
Beispiel #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'])
Beispiel #4
0
 def runTest(self):
     with HTTMock(twitter_mock):
         relme = findRelMe(twitter_url)
         assert len(relme['relme']) > 0
         assert 'https://t.co/ZK4BFjSq66' in relme['relme']
Beispiel #5
0
 def runTest(self):
     with HTTMock(bear_im_mock):
         relme = findRelMe(profile_url)
         assert len(relme['relme']) > 0
         assert 'https://bear.im' in relme['relme']
Beispiel #6
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'])
Beispiel #7
0
 def runTest(self):
     with HTTMock(_mock):
         relme = findRelMe(twitter_url)
         assert len(relme['relme']) > 0
         assert t_co_url in relme['relme']
Beispiel #8
0
 def runTest(self):
     with HTTMock(_mock):
         relme = findRelMe(profile_url)
         assert len(relme['relme']) > 0
         assert profile_url in relme['relme']
Beispiel #9
0
 def runTest(self):
     with HTTMock(_mock):
         relme = findRelMe(twitter_url)
         assert len(relme['relme']) > 0
         assert t_co_url in relme['relme']
Beispiel #10
0
 def runTest(self):
     with HTTMock(_mock):
         relme = findRelMe(profile_url)
         assert len(relme['relme']) > 0
         assert profile_url in relme['relme']