- Timestamp:
- 8 Jan 2015, 14:25:18 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/tests/test_schoolgrades.py
r8057 r12425 76 76 return 77 77 78 def test_eq(self): 79 # we can compare equality of ResultEntry objects 80 item1 = ResultEntry(self.valid_subj, self.valid_grade) 81 item2 = ResultEntry(self.valid_subj, self.valid_grade) 82 item3 = ResultEntry() 83 item4 = ResultEntry() 84 assert item1 is not item2 85 assert item1 == item1 86 assert item1 == item2 87 assert item3 is not item4 88 assert item3 == item4 89 assert item1.__eq__(item2) is True 90 assert item1.__eq__(item3) is False 91 92 def test_ne(self): 93 # we can also tell, which ResultEntries are _not_ equal 94 item1 = ResultEntry(self.valid_subj, self.valid_grade) 95 item2 = ResultEntry() 96 assert item1 != item2 97 assert item1.__ne__(item2) is True 98 assert item1.__ne__(item1) is False 99 100 78 101 class ResultEntryFieldTests(unittest.TestCase): 79 102
Note: See TracChangeset for help on using the changeset viewer.