Skip to content

Commit ff58e0c

Browse files
authored
Merge pull request benoitc#2631 from hugovk/update-deprecated-unittest-aliases
Replace deprecated unittest alias
2 parents 1299ea9 + 45687c3 commit ff58e0c

File tree

1 file changed

+1
-1
lines changed
  • examples/frameworks/django/testing/testing/apps/someapp

1 file changed

+1
-1
lines changed

examples/frameworks/django/testing/testing/apps/someapp/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def test_basic_addition(self):
1212
"""
1313
Tests that 1 + 1 always equals 2.
1414
"""
15-
self.failUnlessEqual(1 + 1, 2)
15+
self.assertEqual(1 + 1, 2)
1616

1717
__test__ = {"doctest": """
1818
Another way to test that 1 + 1 is equal to 2.

0 commit comments

Comments
 (0)