def test_delete_non_existent_binding(self, mock_resources): """ Test consumer group nonexistent binding removal. """ mock_resources.return_value = {'repo_id': 'no_such_repo'} request = mock.MagicMock() unbind_view = ConsumerGroupBindingView() try: response = unbind_view.delete(request, 'test-group', 'no_such_repo', 'dist_id') except MissingResource, response: pass