Exemplo n.º 1
0
 def test_delete_notfound(self, exit_mock, enter_mock):
     enter_mock.return_value = channel = MagicMock()
     channel.queue_delete.side_effect = amqp.exceptions.NotFound
     res = AsyncResult('test_results')
     res.delete()
     exit_mock.assert_called_with(None, None, None)
     channel.queue_delete.assert_called_once_with('test_results')
Exemplo n.º 2
0
 def test_delete_notfound(self, exit_mock, enter_mock):
     enter_mock.return_value = channel = MagicMock()
     channel.queue_delete.side_effect = amqp.exceptions.NotFound
     res = AsyncResult('test_results')
     res.delete()
     exit_mock.assert_called_with(None, None, None)
     channel.queue_delete.assert_called_once_with('test_results')
Exemplo n.º 3
0
 def test_delete(self, exit_mock, enter_mock):
     enter_mock.return_value = channel = MagicMock()
     res = AsyncResult('test_results')
     res.delete()
     exit_mock.assert_called_with(None, None, None)
     channel.queue_delete.assert_called_once_with('test_results')
Exemplo n.º 4
0
 def test_delete(self, exit_mock, enter_mock):
     enter_mock.return_value = channel = MagicMock()
     res = AsyncResult('test_results')
     res.delete()
     exit_mock.assert_called_with(None, None, None)
     channel.queue_delete.assert_called_once_with('test_results')