コード例 #1
0
    def test_run(self):
        l = list_(app=self.app, stderr=WhateverIO())
        l.run('bindings')

        with pytest.raises(Error):
            l.run(None)

        with pytest.raises(Error):
            l.run('foo')
コード例 #2
0
ファイル: test_list.py プロジェクト: jdufresne/celery
    def test_run(self):
        l = list_(app=self.app, stderr=WhateverIO())
        l.run("bindings")

        with pytest.raises(Error):
            l.run(None)

        with pytest.raises(Error):
            l.run("foo")
コード例 #3
0
 def test_list_bindings_no_support(self):
     l = list_(app=self.app, stderr=WhateverIO())
     management = Mock()
     management.get_bindings.side_effect = NotImplementedError()
     with pytest.raises(Error):
         l.list_bindings(management)
コード例 #4
0
ファイル: test_list.py プロジェクト: jdufresne/celery
 def test_list_bindings_no_support(self):
     l = list_(app=self.app, stderr=WhateverIO())
     management = Mock()
     management.get_bindings.side_effect = NotImplementedError()
     with pytest.raises(Error):
         l.list_bindings(management)