We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8be128 commit 5725b53Copy full SHA for 5725b53
bpython/test/test_history.py
@@ -61,13 +61,20 @@ def test_append(self):
61
62
self.assertEqual(self.history.back(), 'print "foo\n"')
63
64
- @unittest.skip("I don't understand this test")
65
def test_enter(self):
66
self.history.enter('#lastnumber!')
67
68
- self.assertEqual(self.history.back(), '#999')
+ self.assertEqual(self.history.back(), '#lastnumber!')
69
self.assertEqual(self.history.forward(), '#lastnumber!')
70
+ def test_enter_2(self):
71
+ self.history.enter('#50')
72
+
73
+ self.assertEqual(self.history.back(), '#509')
74
+ self.assertEqual(self.history.back(), '#508')
75
+ self.assertEqual(self.history.forward(), '#509')
76
77
78
def test_reset(self):
79
80
self.history.reset()
0 commit comments