def test_lt(self): """Verify items can be compared.""" item1 = MockItem('path/to/fake1.yml') item1.level = (1, 1) item2 = MockItem('path/to/fake1.yml') item2.level = (1, 1, 1) item3 = MockItem('path/to/fake1.yml') item3.level = (1, 1, 2) self.assertLess(item1, item2) self.assertLess(item2, item3) self.assertGreater(item3, item1)
def test_lt(self): """Verify items can be compared.""" item1 = MockItem('path/to/fake1.yml') item1.level = (1, 1) item2 = MockItem('path/to/fake1.yml') item2.level = (1, 1, 1) item3 = MockItem('path/to/fake1.yml') item3.level = (1, 1, 2) self.assertLess(item1, item2) self.assertLess(item2, item3) self.assertGreater(item3, item1)