def test_eval_go_last(self): llgl = CDLL() for i in range(10): self.insert(llgl, "00:00:0" + str(i)) for i in range(5): llgl.go_prev() llgl.go_last() try: self.assertEqual(llgl.current.time, "00:00:09") except AssertionError: assert False, "Tail Not At Highest Element"
def test_eval_go_prev(self): llgp = CDLL() for i in range(5): self.insert(llgp, "00:00:0" + str(i)) llgp.current = llgp.head try: self.assertEqual(llgp.current.time, "00:00:00") except AssertionError: assert False, "Head Not Equal" llgp.go_prev() try: self.assertEqual(llgp.current.time, "00:00:04") except AssertionError: assert False, "Previous Element Not Equal"