Commit 661abed 1 parent 97dce09 commit 661abed Copy full SHA for 661abed
File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -57,13 +57,21 @@ def test_add_twice(self):
57
57
def test_send (self ):
58
58
plot = self .make_test_plot ()
59
59
plot .send ("foo" , 1.0 )
60
- self .assertFalse ("foo" in plot .series )
61
- plot .add_left ("foo" )
62
60
self .assertTrue ("foo" in plot .series )
63
61
plot .send ("foo" , 2.0 )
64
62
plot .send ("foo" , 3.0 )
65
63
self .assertAlmostEqual (plot .series ["foo" ][- 1 ], 3.0 )
66
64
65
+ def test_push (self ):
66
+ plot = self .make_test_plot ()
67
+ plot .push ("foo" , 1.0 )
68
+ self .assertFalse ("foo" in plot .series )
69
+ plot .add_left ("foo" )
70
+ self .assertTrue ("foo" in plot .series )
71
+ plot .push ("foo" , 2.0 )
72
+ plot .push ("foo" , 3.0 )
73
+ self .assertAlmostEqual (plot .series ["foo" ][- 1 ], 3.0 )
74
+
67
75
def test_update (self ):
68
76
plot = self .make_test_plot ()
69
77
plot .add_left ("foo" )
You can’t perform that action at this time.
0 commit comments