Skip to content

Commit

Permalink
use ..assertEqual() instead of .assertEquals() in t_ldap_syncrepl.py
Browse files Browse the repository at this point in the history
  • Loading branch information
stroeder authored and Petr Viktorin committed Nov 22, 2017
1 parent a603396 commit 798cb61
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Tests/t_ldap_syncrepl.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
See http://www.python-ldap.org/ for details.
$Id: t_ldap_syncrepl.py,v 1.1 2017/11/20 11:42:19 stroeder Exp $
$Id: t_ldap_syncrepl.py,v 1.2 2017/11/20 19:34:39 stroeder Exp $
"""


Expand Down Expand Up @@ -347,7 +347,7 @@ def test_refreshOnly_poll_full(self):
timeout=None
)
self.assertFalse(poll_result)
self.assertEquals(self.tester.dn_attrs, LDAP_ENTRIES)
self.assertEqual(self.tester.dn_attrs, LDAP_ENTRIES)


def test_refreshAndPersist_poll_only(self):
Expand All @@ -372,7 +372,7 @@ def test_refreshAndPersist_poll_only(self):
)
self.assertTrue(poll_result)

self.assertEquals(self.tester.dn_attrs, LDAP_ENTRIES)
self.assertEqual(self.tester.dn_attrs, LDAP_ENTRIES)


def test_refreshAndPersist_timeout(self):
Expand All @@ -398,7 +398,7 @@ def test_refreshAndPersist_timeout(self):
self.assertTrue(poll_result)

# Again, server data should not have changed.
self.assertEquals(self.tester.dn_attrs, LDAP_ENTRIES)
self.assertEqual(self.tester.dn_attrs, LDAP_ENTRIES)

# Run a search with timeout.
# Nothing is changing the server, so it shoud timeout.
Expand Down Expand Up @@ -433,7 +433,7 @@ def test_refreshAndPersist_cancelled(self):
self.assertTrue(poll_result)

# Again, server data should not have changed.
self.assertEquals(self.tester.dn_attrs, LDAP_ENTRIES)
self.assertEqual(self.tester.dn_attrs, LDAP_ENTRIES)

# Request cancellation.
self.tester.cancel()
Expand All @@ -447,7 +447,7 @@ def test_refreshAndPersist_cancelled(self):
)

# Server data should still be intact.
self.assertEquals(self.tester.dn_attrs, LDAP_ENTRIES)
self.assertEqual(self.tester.dn_attrs, LDAP_ENTRIES)


# TODO:
Expand Down

0 comments on commit 798cb61

Please sign in to comment.