Skip to content

Commit

Permalink
use assertEqual as assertEequals is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
marcwickenden committed Oct 5, 2023
1 parent 396b032 commit 5bc0323
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ def test_init_with_url(self):
def test_init_without_args(self):
with self.assertRaises(TypeError) as error:
s = SRICheck()
self.assertEquals(str(error.exception), "SRICheck.__init__() missing 1 required positional argument: 'url'")
self.assertEqual(str(error.exception), "SRICheck.__init__() missing 1 required positional argument: 'url'")

def test_init_with_empty_url(self):
with self.assertRaises(ValueError) as error:
s = SRICheck("")
self.assertEquals(str(error.exception), "URL cannot be empty")
self.assertEqual(str(error.exception), "URL cannot be empty")

def test_init_with_invalid_url(self):
with self.assertRaises(ValueError) as error:
s = SRICheck("ftp://www.4armed.com")
self.assertEquals(str(error.exception), "URL must be http or https")
self.assertEqual(str(error.exception), "URL must be http or https")

0 comments on commit 5bc0323

Please sign in to comment.