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