'Check that the user\'s name in the comment is populated for
authenticated users without first_name and last_name.'

def testPostAsAuthenticatedUserWithoutFullname(self):

    user = User.objects.create_user(username=u'jane_other', email=u'jane@example.com', password=u'jane_other')
    a = Article.objects.get(pk=1)
    data = self.getValidData(a)
    data[u'name'] = data[u'email'] = u''
    self.client.login(username=u'jane_other', password=u'jane_other')
    self.response = self.client.post(u'/post/', data, REMOTE_ADDR=u'1.2.3.4')
    c = Comment.objects.get(user=user)
    self.assertEqual(c.ip_address, u'1.2.3.4')
    self.assertEqual(c.user_name, u'jane_other')
    user.delete()
