'Test that team deletion is robust to Elasticsearch errors.'

@patch.object(SearchEngine, 'get_search_engine', side_effect=ES_ERROR)
def test_delete_team(self, __):

    self.delete_team(self.wind_team.team_id, 204, user='staff')
