def test_run(self): l = list_(app=self.app, stderr=WhateverIO()) l.run('bindings') with self.assertRaises(Error): l.run(None) with self.assertRaises(Error): l.run('foo')
def test_list_bindings_no_support(self): l = list_(app=self.app, stderr=WhateverIO()) management = Mock() management.get_bindings.side_effect = NotImplementedError() with self.assertRaises(Error): l.list_bindings(management)
def list(self, no_color, quiet, bindings): command.list_(self.celery).run(no_color=no_color, quiet=quiet, what=bindings)