'Test purging a queue by name.'

def test_queue_purge(self):

    mock_queue = Mock()
    purge_result = Mock()
    self.my_channel._purge = Mock(return_value=purge_result)
    result = self.my_channel.queue_purge(mock_queue)
    self.my_channel._purge.assert_called_with(mock_queue)
    assert (purge_result is result)
