コード例 #1
0
 def test_message(self):
     a1 = Audit.from_logentry(log_callbacks)
     expected = """ after: Client: yoOjy6poL2dVPVcXgi7zc8gCS0qvnOzpwyQemCTw, redirects: https://stg-sr.us.truenth.org/, callback: https://stg-sr.us.truenth.org/_/callback"""
     self.assertEquals(a1.comment, expected)
コード例 #2
0
 def test_parse_timezone(self):
     a1 = Audit.from_logentry(log_login_google)
     expected = parser.parse("2016-02-23 09:52")
     self.assertEquals(a1.timestamp, expected)
コード例 #3
0
 def test_parse_subject(self):
     a1 = Audit.from_logentry(log_login_idp)
     self.assertEquals(a1.subject_id, TEST_USER_ID)
コード例 #4
0
 def test_parse_context(self):
     a1 = Audit.from_logentry(log_login_idp)
     self.assertEquals(a1.context, "login")
コード例 #5
0
 def test_parse_timezone(self):
     a1 = Audit.from_logentry(log_login_google)
     expected = parser.parse("2016-02-23 09:52")
     assert a1.timestamp == expected
コード例 #6
0
 def test_parse_user(self):
     a1 = Audit.from_logentry(log_login_idp)
     self.assertEquals(a1.user_id, TEST_USER_ID)
コード例 #7
0
 def test_parse_context(self):
     a1 = Audit.from_logentry(log_login_idp)
     assert a1.context == "login"
コード例 #8
0
 def test_message(self):
     a1 = Audit.from_logentry(log_callbacks)
     expected = """ after: Client: yoOjy6poL2dVPVcXgi7zc8gCS0qvnOzpwyQemCTw, redirects: https://stg-sr.us.truenth.org/, callback: https://stg-sr.us.truenth.org/_/callback"""
     assert a1.comment == expected
コード例 #9
0
 def test_parse_subject(self):
     a1 = Audit.from_logentry(log_login_idp)
     assert a1.subject_id == TEST_USER_ID
コード例 #10
0
 def test_parse_user(self):
     a1 = Audit.from_logentry(log_login_idp)
     assert a1.user_id == TEST_USER_ID
コード例 #11
0
ファイル: test_audit.py プロジェクト: ivan-c/truenth-portal
 def test_parse_context(self):
     a1 = Audit.from_logentry(log_login_idp)
     assert a1.context == "login"
コード例 #12
0
ファイル: test_audit.py プロジェクト: ivan-c/truenth-portal
 def test_parse_subject(self):
     a1 = Audit.from_logentry(log_login_idp)
     assert a1.subject_id == TEST_USER_ID
コード例 #13
0
ファイル: test_audit.py プロジェクト: ivan-c/truenth-portal
 def test_parse_user(self):
     a1 = Audit.from_logentry(log_login_idp)
     assert a1.user_id == TEST_USER_ID