コード例 #1
0
 def test_garbageMatch(self):
     r = 'http://example.com/return.to'
     self.failUnless(
         trustroot.returnToMatches([
             'This is not a URL at all. In fact, it has characters, '
             'like "<" that are not allowed in URLs', r
         ], r))
コード例 #2
0
ファイル: test_rpverify.py プロジェクト: 18600597055/hue
 def test_garbageMatch(self):
     r = 'http://example.com/return.to'
     self.failUnless(trustroot.returnToMatches(
         ['This is not a URL at all. In fact, it has characters, '
          'like "<" that are not allowed in URLs',
          r],
         r))
コード例 #3
0
ファイル: test_rpverify.py プロジェクト: 18600597055/hue
 def test_descendant(self):
     r = 'http://example.com/return.to'
     self.failUnless(trustroot.returnToMatches(
         [r],
         'http://example.com/return.to/user:joe'))
コード例 #4
0
ファイル: test_rpverify.py プロジェクト: 18600597055/hue
 def test_exactMatch(self):
     r = 'http://example.com/return.to'
     self.failUnless(trustroot.returnToMatches([r], r))
コード例 #5
0
ファイル: test_rpverify.py プロジェクト: 18600597055/hue
 def test_noEntries(self):
     self.failIf(trustroot.returnToMatches([], 'anything'))
コード例 #6
0
 def test_exactMatch(self):
     r = 'http://example.com/return.to'
     self.assertTrue(trustroot.returnToMatches([r], r))
コード例 #7
0
 def test_noEntries(self):
     self.assertFalse(trustroot.returnToMatches([], 'anything'))
コード例 #8
0
 def test_exactMatch(self):
     r = 'http://example.com/return.to'
     self.failUnless(trustroot.returnToMatches([r], r))
コード例 #9
0
 def test_wildcard(self):
     self.assertFalse(
         trustroot.returnToMatches(['http://*.example.com/return.to'],
                                   'http://example.com/return.to'))
コード例 #10
0
 def test_descendant(self):
     r = 'http://example.com/return.to'
     self.assertTrue(
         trustroot.returnToMatches([r],
                                   'http://example.com/return.to/user:joe'))
コード例 #11
0
 def test_garbageMatch(self):
     r = 'http://example.com/return.to'
     realm = 'This is not a URL at all. In fact, it has characters, like "<" that are not allowed in URLs'
     self.assertTrue(trustroot.returnToMatches([realm, r], r))
コード例 #12
0
 def test_exactMatch(self):
     r = 'http://example.com/return.to'
     self.assertTrue(trustroot.returnToMatches([r], r))
コード例 #13
0
 def test_noEntries(self):
     self.assertFalse(trustroot.returnToMatches([], 'anything'))
コード例 #14
0
ファイル: test_rpverify.py プロジェクト: ziima/python-openid
 def test_garbageMatch(self):
     r = 'http://example.com/return.to'
     realm = 'This is not a URL at all. In fact, it has characters, like "<" that are not allowed in URLs'
     self.assertTrue(trustroot.returnToMatches([realm, r], r))
コード例 #15
0
ファイル: test_rpverify.py プロジェクト: 18600597055/hue
 def test_wildcard(self):
     self.failIf(trustroot.returnToMatches(
         ['http://*.example.com/return.to'],
         'http://example.com/return.to'))
コード例 #16
0
 def test_noMatch(self):
     r = 'http://example.com/return.to'
     self.assertFalse(
         trustroot.returnToMatches([r], 'http://example.com/xss_exploit'))
コード例 #17
0
ファイル: test_rpverify.py プロジェクト: 18600597055/hue
 def test_noMatch(self):
     r = 'http://example.com/return.to'
     self.failIf(trustroot.returnToMatches(
         [r],
         'http://example.com/xss_exploit'))
コード例 #18
0
 def test_noEntries(self):
     self.failIf(trustroot.returnToMatches([], 'anything'))