Exemplo n.º 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'])
Exemplo n.º 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'])
Exemplo n.º 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'])
Exemplo n.º 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']
Exemplo n.º 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']
Exemplo n.º 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'])
Exemplo n.º 7
0
 def runTest(self):
     with HTTMock(_mock):
         relme = findRelMe(twitter_url)
         assert len(relme['relme']) > 0
         assert t_co_url in relme['relme']
Exemplo n.º 8
0
 def runTest(self):
     with HTTMock(_mock):
         relme = findRelMe(profile_url)
         assert len(relme['relme']) > 0
         assert profile_url in relme['relme']
Exemplo n.º 9
0
 def runTest(self):
     with HTTMock(_mock):
         relme = findRelMe(twitter_url)
         assert len(relme['relme']) > 0
         assert t_co_url in relme['relme']
Exemplo n.º 10
0
 def runTest(self):
     with HTTMock(_mock):
         relme = findRelMe(profile_url)
         assert len(relme['relme']) > 0
         assert profile_url in relme['relme']