'The unhelpful survey is stored as vote metadata'

def test_unhelpful_survey(self):

    vote = HelpfulVoteFactory()
    url = reverse('wiki.unhelpful_survey')
    data = {'vote_id': vote.id, 'button': 'Submit', 'confusing': 1, 'too-long': 1, 'comment': 'lorem    ipsum    dolor'}
    response = self.client.post(url, data)
    eq_(200, response.status_code)
    eq_('{"message":    "Thanks    for    making    us    better!"}', response.content)
    vote_meta = vote.metadata.all()
    eq_(1, len(vote_meta))
    eq_('survey', vote_meta[0].key)
    survey = json.loads(vote_meta[0].value)
    eq_(3, len(survey.keys()))
    assert ('confusing' in survey)
    assert ('too-long' in survey)
    eq_('lorem    ipsum    dolor', survey['comment'])
    self.client.post(url, data)
    eq_(1, vote.metadata.filter(key='survey').count())
