Пример #1
0
    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')
Пример #2
0
 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)
Пример #3
0
 def list(self, no_color, quiet, bindings):
     command.list_(self.celery).run(no_color=no_color, quiet=quiet, what=bindings)