'New question is posted through mobile.'

@mock.patch.object(Site.objects, 'get_current')
def test_aaq_new_question_inactive(self, get_current):

    get_current.return_value.domain = 'testserver'
    u = UserFactory()
    self.client.login(username=u.username, password='testpass')
    u.is_active = False
    u.save()
    s = self.client.session
    s['in-aaq'] = True
    s.save()
    response = self._new_question(post_it=True)
    eq_(200, response.status_code)
    assert template_used(response, 'questions/mobile/confirm_email.html')
