コード例 #1
0
 def test_parse_options_version_only(self, stdout):
     cmd = Command()
     with self.assertRaises(SystemExit):
         cmd.parse_options('prog', ['--version'])
     stdout.write.assert_called_with(cmd.version + '\n')
コード例 #2
0
ファイル: test_base.py プロジェクト: westurner/celery
 def test_parse_options_version_only(self, stdout):
     cmd = Command()
     with self.assertRaises(SystemExit):
         cmd.parse_options("prog", ["--version"])
     stdout.write.assert_called_with(cmd.version + "\n")
コード例 #3
0
ファイル: test_base.py プロジェクト: aliscott/celery
 def test_parse_options_version_only(self, stdout):
     cmd = Command()
     with self.assertRaises(SystemExit):
         cmd.parse_options('prog', ['--version'])
     stdout.write.assert_called_with(cmd.version + '\n')