示例#1
0
 def test_booleans(self):
     with self._assert_stdout('test\ntest\n'):
         booleans.main('test', upper=False, repeat=True)
     with self._assert_stdout('TEST\n'):
         booleans.main('test')
示例#2
0
 def test_booleans(self, print_):
     booleans.main('test', upper=False, repeat=True)
     print_.assert_has_calls([mock.call('test'), mock.call('test')])
     booleans.main('test')
     print_.assert_called_with('TEST')
示例#3
0
 def test_booleans(self, print_):
     booleans.main('test', upper=False, repeat=True)
     print_.assert_has_calls([mock.call('test'), mock.call('test')])
     booleans.main('test')
     print_.assert_called_with('TEST')