'The edit-question form should show appropriate metadata fields.'

def test_extra_fields(self):

    question_id = QuestionFactory().id
    response = get(self.client, 'questions.edit_question', kwargs={'question_id': question_id})
    eq_(response.status_code, 200)
    doc = pq(response.content)
    q = Question.objects.get(pk=question_id)
    extra_fields = (q.product_config.get('extra_fields', []) + q.category_config.get('extra_fields', []))
    for field in extra_fields:
        assert (doc(('input[name=%s]' % field)) or doc(('textarea[name=%s]' % field))), ('The    %s    field    is    missing    from    the    edit    page.' % field)
