コード例 #1
0
ファイル: test_help.py プロジェクト: adamcharnock/seed
class TestCreateCommand(BaseSeedTest):
    def setUp(self):
        super(TestCreateCommand, self).setUp()
        self.cmd = HelpCommand()

    def test_help(self):
        self.cmd.main(args=[], initial_options={})

    def test_help_specific_command(self):
        self.cmd.main(args=["release"], initial_options={})

    def test_help_command_missing(self):
        self.assertRaises(CommandError, self.cmd.main, args=["foo"], initial_options={})
コード例 #2
0
ファイル: test_help.py プロジェクト: lukehuang/seed
class TestCreateCommand(BaseSeedTest):
    def setUp(self):
        super(TestCreateCommand, self).setUp()
        self.cmd = HelpCommand()

    def test_help(self):
        self.cmd.main(args=[], initial_options={})

    def test_help_specific_command(self):
        self.cmd.main(args=['release'], initial_options={})

    def test_help_command_missing(self):
        self.assertRaises(CommandError,
                          self.cmd.main,
                          args=['foo'],
                          initial_options={})
コード例 #3
0
ファイル: test_help.py プロジェクト: lukehuang/seed
 def setUp(self):
     super(TestCreateCommand, self).setUp()
     self.cmd = HelpCommand()
コード例 #4
0
ファイル: test_help.py プロジェクト: hekexue/seed
 def setUp(self):
     super(TestCreateCommand, self).setUp()
     self.cmd = HelpCommand()