There was an error while loading. Please reload this page.
1 parent 50f32e1 commit c92076bCopy full SHA for c92076b
1 file changed
tests/integration/test_list.py
@@ -1,6 +1,7 @@
1
from .base import IntegrationBaseTestCase
2
3
import mock
4
+from mock import call
5
6
from beancmd import list_tubes
7
@@ -16,4 +17,8 @@ def test_list_tubes(self):
16
17
])
18
with mock.patch('sys.stdout.write') as mock_sys_stdout_write:
19
list_tubes.run(args)
- assert mock_sys_stdout_write.called_once_with('bar\nbaz\ndefault\nfoo\n')
20
+
21
+ mock_sys_stdout_write.assert_has_calls([
22
+ call('bar\nbaz\ndefault\nfoo'),
23
+ call('\n')
24
+ ])
0 commit comments