'Verify the correct fields are serialized.'

def test_data(self):

    user = UserFactory()
    eligibility = CreditEligibilityFactory(username=user.username)
    serializer = serializers.CreditEligibilitySerializer(eligibility)
    expected = {u'course_key': unicode(eligibility.course.course_key), u'deadline': eligibility.deadline.strftime(u'%Y-%m-%dT%H:%M:%S.%fZ'), u'username': user.username}
    self.assertDictEqual(serializer.data, expected)
