def test_cmp():
 a = frozenset([1, 2])
 b = set([1, 2])
 abig = frozenset([1, 2, 3])
 bbig = set([1, 2, 3])
 AreEqual(cmp(a, b), 0)
 AreEqual(cmp(a, bbig), (-1))
 AreEqual(cmp(abig, b), 1)
 class sset(set, ):
  pass
 class fset(frozenset, ):
  pass
 a = fset([1, 2])
 b = sset([1, 2])
 abig = fset([1, 2, 3])
 bbig = sset([1, 2, 3])
 AreEqual(cmp(a, b), 0)
 AreEqual(cmp(a, bbig), (-1))
 AreEqual(cmp(abig, b), 1)

def test_cmp ( ) : a = frozenset ( [ 1 , 2 ] ) b = set ( [ 1 , 2 ] ) abig = frozenset ( [ 1 , 2 , 3 ] ) bbig = set ( [ 1 , 2 , 3 ] ) AreEqual ( cmp ( a , b ) , 0 ) AreEqual ( cmp ( a , bbig ) , ( - 1 ) ) AreEqual ( cmp ( abig , b ) , 1 ) class sset ( set , ) : pass class fset ( frozenset , ) : pass a = fset ( [ 1 , 2 ] ) b = sset ( [ 1 , 2 ] ) abig = fset ( [ 1 , 2 , 3 ] ) bbig = sset ( [ 1 , 2 , 3 ] ) AreEqual ( cmp ( a , b ) , 0 ) AreEqual ( cmp ( a , bbig ) , ( - 1 ) ) AreEqual ( cmp ( abig , b ) , 1 )
verify we can compare sets that arent the same type .