From 465c7d569ca1b5fb3ef4ddf1767e6c04c0ba8109 Mon Sep 17 00:00:00 2001 From: Ben Firshman Date: Tue, 4 Mar 2014 10:26:57 +0000 Subject: [PATCH] Improve CLI test names --- tests/cli_test.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/cli_test.py b/tests/cli_test.py index 61e30b7a2..c2040e633 100644 --- a/tests/cli_test.py +++ b/tests/cli_test.py @@ -32,7 +32,7 @@ class CLITestCase(DockerClientTestCase): self.assertIn('fig_simple_1', mock_stdout.getvalue()) @patch('sys.stdout', new_callable=StringIO) - def test_default_figfile(self, mock_stdout): + def test_ps_default_figfile(self, mock_stdout): self.command.base_dir = 'tests/fixtures/multiple-figfiles' self.command.dispatch(['up', '-d'], None) self.command.dispatch(['ps'], None) @@ -43,7 +43,7 @@ class CLITestCase(DockerClientTestCase): self.assertNotIn('fig_yetanother_1', output) @patch('sys.stdout', new_callable=StringIO) - def test_alternate_figfile(self, mock_stdout): + def test_ps_alternate_figfile(self, mock_stdout): self.command.base_dir = 'tests/fixtures/multiple-figfiles' self.command.dispatch(['-f', 'fig2.yml', 'up', '-d'], None) self.command.dispatch(['-f', 'fig2.yml', 'ps'], None) @@ -74,4 +74,3 @@ class CLITestCase(DockerClientTestCase): self.command.scale({'SERVICE=NUM': ['simple=0', 'another=0']}) self.assertEqual(len(project.get_service('simple').containers()), 0) self.assertEqual(len(project.get_service('another').containers()), 0) -