diff options
Diffstat (limited to 'tests/user_commands/tests.py')
| -rw-r--r-- | tests/user_commands/tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/user_commands/tests.py b/tests/user_commands/tests.py index c24a6e7a2d..1d405bec1c 100644 --- a/tests/user_commands/tests.py +++ b/tests/user_commands/tests.py @@ -74,6 +74,11 @@ class CommandTests(SimpleTestCase): if current_path is not None: os.environ['PATH'] = current_path + def test_output_transaction(self): + out = StringIO() + management.call_command('transaction', stdout=out, no_color=True) + self.assertEqual(out.getvalue(), 'BEGIN;\nHello!\n\nCOMMIT;\n') + class UtilsTests(SimpleTestCase): |
