Example #1
0
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={})
Example #2
0
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={})
Example #3
0
 def setUp(self):
     super(TestCreateCommand, self).setUp()
     self.cmd = HelpCommand()
Example #4
0
 def setUp(self):
     super(TestCreateCommand, self).setUp()
     self.cmd = HelpCommand()