@@ -26,7 +26,7 @@ def test_invalid_endorser(self):
2626
2727 response = self .client .post (
2828 url , json .dumps (endorse_data ), content_type = 'application/json' )
29- self .assertEquals (response .status_code , 401 )
29+ self .assertEqual (response .status_code , 401 )
3030
3131 def test_invalid_endorsee (self ):
3232 self .set_user ('jstaff' )
@@ -47,7 +47,7 @@ def test_invalid_endorsee(self):
4747
4848 response = self .client .post (
4949 url , json .dumps (endorse_data ), content_type = 'application/json' )
50- self .assertEquals (response .status_code , 200 )
50+ self .assertEqual (response .status_code , 200 )
5151 data = json .loads (response .content )
5252 self .assertTrue ('error' in data ['endorsed' ]['endorsee99' ])
5353
@@ -70,7 +70,7 @@ def test_invalid_service(self):
7070
7171 response = self .client .post (
7272 url , json .dumps (endorse_data ), content_type = 'application/json' )
73- self .assertEquals (response .status_code , 200 )
73+ self .assertEqual (response .status_code , 200 )
7474 data = json .loads (response .content )
7575 self .assertFalse ('mumble' in data ['endorsed' ]['endorsee2' ])
7676
@@ -96,7 +96,7 @@ def test_valid_override(self):
9696
9797 response = self .client .post (
9898 url , json .dumps (endorse_data ), content_type = 'application/json' )
99- self .assertEquals (response .status_code , 200 )
99+ self .assertEqual (response .status_code , 200 )
100100
101101
102102class TestEndorsementSupportEndorseAPI (EndorsementApiTest ):
@@ -124,4 +124,4 @@ def test_valid_override(self):
124124
125125 response = self .client .post (
126126 url , json .dumps (endorse_data ), content_type = 'application/json' )
127- self .assertEquals (response .status_code , 401 )
127+ self .assertEqual (response .status_code , 401 )
0 commit comments