Example #1
0
def test_inequality():
    userA = UserListEntry("a")
    userB = UserListEntry("b")
    assert userA != userB, "inequality test failed"
Example #2
0
def test_greater():
    userA = UserListEntry("~a")
    userB = UserListEntry("%a")
    assert userA > userB, "greater than test failed"
Example #3
0
def test_equal():
    userA = UserListEntry("%a")
    userB = UserListEntry("%a")
    assert userA == userB, "equality test failed"
Example #4
0
def test_less():
    userA = UserListEntry("@a")
    userB = UserListEntry("b")
    assert userA < userB, "less than test failed"
Example #5
0
 def test_inequality(self):
     userA = UserListEntry("a")
     userB = UserListEntry("b")
     self.assertNotEqual(userA, userB)
Example #6
0
 def test_equal(self):
     userA = UserListEntry("%a")
     userB = UserListEntry("%a")
     self.assertTrue(userA == userB)
Example #7
0
 def test_greater(self):
     userA = UserListEntry("~a")
     userB = UserListEntry("%a")
     self.assertTrue(userA > userB)
Example #8
0
 def test_less(self):
     userA = UserListEntry("@a")
     userB = UserListEntry("b")
     self.assertTrue(userA < userB)