'Assert an entry is what is expected.'

def assert_entry(self, entry, when=None, name=None, message=None, domain=None, entity_id=None):

    if when:
        self.assertEqual(when, entry.when)
    if name:
        self.assertEqual(name, entry.name)
    if message:
        self.assertEqual(message, entry.message)
    if domain:
        self.assertEqual(domain, entry.domain)
    if entity_id:
        self.assertEqual(entity_id, entry.entity_id)
