Commit 1fd7f3f0 by Chris Jerdonek

Changed the deprecated (in Python 3) assertNotEquals to assertNotEqual everywhere.

parent a8e390cb
...@@ -15,7 +15,6 @@ from pystache.locator import Locator ...@@ -15,7 +15,6 @@ from pystache.locator import Locator
# We make a function so that the current defaults take effect. # We make a function so that the current defaults take effect.
# TODO: revisit whether this is necessary. # TODO: revisit whether this is necessary.
# TODO: change assertNotEquals to assertNotEqual everywhere.
def _make_to_unicode(): def _make_to_unicode():
def to_unicode(s, encoding=None): def to_unicode(s, encoding=None):
......
...@@ -69,7 +69,7 @@ class GetValueTests(unittest.TestCase, AssertIsMixin): ...@@ -69,7 +69,7 @@ class GetValueTests(unittest.TestCase, AssertIsMixin):
return "bar" return "bar"
item = {"foo": foo_callable} item = {"foo": foo_callable}
self.assertNotEquals(_get_value(item, "foo"), "bar") self.assertNotEqual(_get_value(item, "foo"), "bar")
self.assertTrue(_get_value(item, "foo") is foo_callable) self.assertTrue(_get_value(item, "foo") is foo_callable)
def test_dictionary__key_missing(self): def test_dictionary__key_missing(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment