[extensions-web/django/upgrade-1.8] tests: fixed a bit more deprecation warnings.



commit 14e26b9c97c97518ed9760cd52372f1c24cdae8c
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Sun Oct 23 12:06:44 2016 +0300

    tests: fixed a bit more deprecation warnings.

 sweettooth/extensions/tests.py |    2 +-
 sweettooth/review/tests.py     |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/sweettooth/extensions/tests.py b/sweettooth/extensions/tests.py
index 59ffd53..a2d98aa 100644
--- a/sweettooth/extensions/tests.py
+++ b/sweettooth/extensions/tests.py
@@ -208,7 +208,7 @@ class UploadTest(BasicUserTestCase, TransactionTestCase):
         self.upload_file('SimpleExtension')
 
         version2 = extension.versions.order_by("-version")[0]
-        self.assertNotEquals(version1, version2)
+        self.assertNotEqual(version1, version2)
 
         # This should be auto-approved.
         self.assertEqual(version2.status, models.STATUS_ACTIVE)
diff --git a/sweettooth/review/tests.py b/sweettooth/review/tests.py
index 807a97b..90e7f8d 100644
--- a/sweettooth/review/tests.py
+++ b/sweettooth/review/tests.py
@@ -18,18 +18,18 @@ class DiffViewTest(BasicUserTestCase, TestCase):
         version1 = models.ExtensionVersion.objects.create(extension=extension,
                                                           source=File(ContentFile("doot doo"), name="aa"),
                                                           status=models.STATUS_UNREVIEWED)
-        self.assertEquals(None, get_old_version(version1))
+        self.assertEqual(None, get_old_version(version1))
 
         # This one is broken...
         version2 = models.ExtensionVersion.objects.create(extension=extension,
                                                           source="",
                                                           status=models.STATUS_UNREVIEWED)
-        self.assertEquals(version1, get_old_version(version2))
+        self.assertEqual(version1, get_old_version(version2))
 
         version3 = models.ExtensionVersion.objects.create(extension=extension,
                                                           source=File(ContentFile("doot doo"), name="bb"),
                                                           status=models.STATUS_UNREVIEWED)
-        self.assertEquals(version1, get_old_version(version3))
+        self.assertEqual(version1, get_old_version(version3))
 
 class TestAutoApproveLogic(TestCase):
     def build_changeset(self, added=None, deleted=None, changed=None, unchanged=None):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]