Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deprecated assertEquals to assertEqual #288

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion koans/about_iteration.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def is_big_name(item):
except StopIteration:
msg = 'Ran out of big names'

self.assertEquals(__, msg)
self.assertEqual(__, msg)

# ------------------------------------------------------------------

Expand Down
6 changes: 3 additions & 3 deletions koans/about_regex.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def test_matching_any_character(self):

# I want to find all uses of myArray
change_this_search_string = 'a..xlx'
self.assertEquals(
self.assertEqual(
len(re.findall(change_this_search_string, string)),
3)

Expand All @@ -108,7 +108,7 @@ def test_matching_set_character(self):
# which matches in above test but in this case matches more than
# you want
change_this_search_string = '[nsc]a[2-9].xls'
self.assertEquals(
self.assertEqual(
len(re.findall(change_this_search_string, string)),
3)

Expand All @@ -135,6 +135,6 @@ def test_anything_but_matching(self):

# I want to find the name 'sam'
change_this_search_string = '[^nc]am'
self.assertEquals(
self.assertEqual(
re.findall(change_this_search_string, string),
['sam.xls'])
4 changes: 2 additions & 2 deletions runner/runner_tests/test_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def test_that_get_class_name_works_with_a_string_instance(self):
self.assertEqual("str", helper.cls_name(str()))

def test_that_get_class_name_works_with_a_4(self):
self.assertEquals("int", helper.cls_name(4))
self.assertEqual("int", helper.cls_name(4))

def test_that_get_class_name_works_with_a_tuple(self):
self.assertEquals("tuple", helper.cls_name((3,"pie", [])))
self.assertEqual("tuple", helper.cls_name((3,"pie", [])))