'Regression test for #15661'

def test_logentry_unicode(self):

    log_entry = admin.models.LogEntry()
    log_entry.action_flag = admin.models.ADDITION
    self.assertTrue(six.text_type(log_entry).startswith(u'Added    '))
    log_entry.action_flag = admin.models.CHANGE
    self.assertTrue(six.text_type(log_entry).startswith(u'Changed    '))
    log_entry.action_flag = admin.models.DELETION
    self.assertTrue(six.text_type(log_entry).startswith(u'Deleted    '))
    log_entry.action_flag = 4
    self.assertEqual(six.text_type(log_entry), u'LogEntry    Object')
