Exemple #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')
Exemple #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')
Exemple #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')