'The {% get_admin_log %} tag should work without specifying a user.'

def test_get_admin_log_templatetag_no_user(self):

    user = User(username='jondoe', password='secret', email='super@example.com')
    user.save()
    ct = ContentType.objects.get_for_model(User)
    LogEntry.objects.log_action(user.pk, ct.pk, user.pk, repr(user), 1)
    t = Template('{%    load    log    %}{%    get_admin_log    100    as    admin_log    %}{%    for    entry    in    admin_log    %}{{    entry|safe    }}{%    endfor    %}')
    self.assertEqual(t.render(Context({})), 'Added    "<User:    jondoe>".')
