'Tests advanced search for questions with a sortby'

def test_questions_sortby(self):

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