File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -41,12 +41,15 @@ def assertSuccessfullCleanup(self):
41
41
def test_play_virtual (self ):
42
42
sys .argv = self .baseargs + [self .logfile ]
43
43
can .player .main ()
44
+ # TODO: add test two messages sent
44
45
self .assertEqual (self .MockSleep .call_count , 2 )
45
46
self .assertSuccessfullCleanup ()
46
47
47
48
def test_play_virtual_verbose (self ):
48
49
sys .argv = self .baseargs + ["-v" , self .logfile ]
49
50
can .player .main ()
51
+ # TODO: add test two messages sent
52
+ # TODO: add test message was printed
50
53
self .assertEqual (self .MockSleep .call_count , 2 )
51
54
self .assertSuccessfullCleanup ()
52
55
@@ -55,9 +58,15 @@ def test_play_virtual_exit(self):
55
58
56
59
sys .argv = self .baseargs + [self .logfile ]
57
60
can .player .main ()
61
+ # TODO: add test one message sent
58
62
self .assertEqual (self .MockSleep .call_count , 1 )
59
63
self .assertSuccessfullCleanup ()
60
64
65
+ def test_play_error_frame (self ):
66
+ # TODO: implement
67
+ sys .argv = self .baseargs + ["--error-frames" , self .logfile ]
68
+ can .player .main ()
69
+
61
70
62
71
if __name__ == "__main__" :
63
72
unittest .main ()
You can’t perform that action at this time.
0 commit comments