Package openid :: Package test :: Module test_symbol
[frames] | no frames]

Source Code for Module openid.test.test_symbol

 1  import unittest 
 2   
 3  from openid import oidutil 
 4   
5 -class SymbolTest(unittest.TestCase):
6 - def test_selfEquality(self):
7 s = oidutil.Symbol('xxx') 8 self.failUnlessEqual(s, s)
9
10 - def test_otherEquality(self):
11 x = oidutil.Symbol('xxx') 12 y = oidutil.Symbol('xxx') 13 self.failUnlessEqual(x, y)
14
15 - def test_inequality(self):
16 x = oidutil.Symbol('xxx') 17 y = oidutil.Symbol('yyy') 18 self.failIfEqual(x, y)
19
20 - def test_selfInequality(self):
21 x = oidutil.Symbol('xxx') 22 self.failIf(x != x)
23
24 - def test_otherInequality(self):
25 x = oidutil.Symbol('xxx') 26 y = oidutil.Symbol('xxx') 27 self.failIf(x != y)
28
29 - def test_ne_inequality(self):
30 x = oidutil.Symbol('xxx') 31 y = oidutil.Symbol('yyy') 32 self.failUnless(x != y)
33 34 if __name__ == '__main__': 35 unittest.main() 36