'Asserts that shibboleth login attempt is being logged'

def _assert_shib_login_is_logged(self, audit_log_call, remote_user):

    remote_user = _flatten_to_ascii(remote_user)
    (method_name, args, _kwargs) = audit_log_call
    self.assertEquals(method_name, 'info')
    self.assertEquals(len(args), 1)
    self.assertIn(u'logged    in    via    Shibboleth', args[0])
    self.assertIn(remote_user, args[0])
