From 45687c358ccc4067100f526565213e4835b4a5f7 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Wed, 18 Aug 2021 13:09:03 +0300 Subject: [PATCH] Replace deprecated unittest alias --- .../frameworks/django/testing/testing/apps/someapp/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/frameworks/django/testing/testing/apps/someapp/tests.py b/examples/frameworks/django/testing/testing/apps/someapp/tests.py index 3b311488..85c920bb 100755 --- a/examples/frameworks/django/testing/testing/apps/someapp/tests.py +++ b/examples/frameworks/django/testing/testing/apps/someapp/tests.py @@ -12,7 +12,7 @@ class SimpleTest(TestCase): """ Tests that 1 + 1 always equals 2. """ - self.failUnlessEqual(1 + 1, 2) + self.assertEqual(1 + 1, 2) __test__ = {"doctest": """ Another way to test that 1 + 1 is equal to 2.