Beispiel #1
0
    def test_AMQPAdminCommand(self, cls):
        c = cls.return_value = Mock()
        camqadm()
        c.run.assert_called_with()

        x = AMQPAdminCommand(app=self.app)
        x.run()
        self.assertIs(cls.call_args[1]['app'], self.app)
        c.run.assert_called_with()
Beispiel #2
0
    def test_AMQPAdminCommand(self, cls):
        c = cls.return_value = Mock()
        camqadm()
        c.run.assert_called_with()

        x = AMQPAdminCommand(app=self.app)
        x.run()
        self.assertIs(cls.call_args[1]['app'], self.app)
        c.run.assert_called_with()
Beispiel #3
0
 def test_camqadm(self, cls):
     c = cls.return_value = Mock()
     camqadm()
     c.run.assert_called_with()
Beispiel #4
0
 def handle(self, *args, **options):
     """Handle the management command."""
     camqadm(*args, **options)
Beispiel #5
0
 def test_camqadm(self, cls):
     c = cls.return_value = Mock()
     camqadm()
     c.run.assert_called_with()