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