expected = field == 'has_contacts'

or

    eq_(getattr(features, field), field == 'has_contacts')