File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -97,15 +97,16 @@ def test_status_from_exception():
97
97
98
98
99
99
def test_status_from_tuple ():
100
- stat = utils .error_status_factory ((samlp .STATUS_UNKNOWN_PRINCIPAL , 'Error resolving principal' ))
100
+ stat = utils .error_status_factory ((samlp .STATUS_UNKNOWN_PRINCIPAL ,
101
+ 'Error resolving principal' ))
101
102
status_text = "%s" % stat
102
- assert status_text == ERROR_STATUS
103
+ assert status_text in ( ERROR_STATUS_NO_HEADER , ERROR_STATUS )
103
104
104
105
105
106
def test_status_from_tuple_empty_message ():
106
107
stat = utils .error_status_factory ((samlp .STATUS_UNKNOWN_PRINCIPAL , None ))
107
108
status_text = "%s" % stat
108
- assert status_text == ERROR_STATUS_EMPTY
109
+ assert status_text == ERROR_STATUS_NO_HEADER_EMPTY
109
110
110
111
111
112
def test_attribute_sn ():
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ def test_verify_w_authn(self):
125
125
assert len (authn_info ) == 1
126
126
assert authn_info [0 ][0 ] == INTERNETPROTOCOLPASSWORD
127
127
assert authn_info [0 ][1 ] == ["http://www.example.com/login" ]
128
- now = datetime .now ()
128
+ now = datetime .utcnow ()
129
129
dt = parser .parse (authn_info [0 ][2 ])
130
130
assert now .year == dt .year and now .month == dt .month and now .day == dt .day
131
131
session_info = self .ar .session_info ()
You can’t perform that action at this time.
0 commit comments