def tearDown(self):
     responses = PollBase.get_poll_responses_ids(self.browser, self.poll_id)
     for response in responses:
         delete_responses_url = build_url('/polls/responses/%s/delete/' %
                                          response.value)
         post(self.opener, delete_responses_url)
     PollBase.close_poll(self.poll_id)
 def delete_poll(cls):
     delete_url = build_url('/polls/%s/delete/' % cls.poll_id)
     post(cls.opener, delete_url)
 def tearDown(self):
     responses = PollBase.get_poll_responses_ids(self.browser, self.poll_id)
     for response in responses:
         delete_responses_url = build_url('/polls/responses/%s/delete/' % response.value)
         post(self.opener, delete_responses_url)
     PollBase.close_poll(self.poll_id)
 def delete_poll(cls):
     delete_url = build_url('/polls/%s/delete/' % cls.poll_id)
     post(cls.opener, delete_url)