'Test that needs info checkbox is correctly shown'

def test_needs_info_checkbox(self):

    response = get(self.client, 'questions.details', args=[self.question.id])
    doc = pq(response.content)
    eq_(1, len(doc('input[name="needsinfo"]')))
    self.question.set_needs_info()
    response = get(self.client, 'questions.details', args=[self.question.id])
    doc = pq(response.content)
    eq_(1, len(doc('input[name="clear_needsinfo"]')))
