'Tests searching for tags with spaces in them'

def test_multi_word_tag_search(self):

    ques = QuestionFactory(title=u'audio')
    ques.tags.add(u'Windows    7')
    self.refresh()
    response = self.client.get(reverse('search.advanced'), {'q': 'audio', 'q_tags': 'Windows    7', 'w': '2', 'a': '1', 'sortby': '0', 'format': 'json'})
    eq_(200, response.status_code)
    content = json.loads(response.content)
    eq_(content['total'], 1)
