Remove assertEquals from tests

This commit is contained in:
Roman Mogylatov 2018-11-08 22:55:01 +02:00
parent b1e166dcd5
commit 3e73555869
3 changed files with 5 additions and 4 deletions

View File

@ -12,6 +12,7 @@ Development version
- Fix bug `#208 <https://github.com/ets-labs/python-dependency-injector/issues/208>`_: - Fix bug `#208 <https://github.com/ets-labs/python-dependency-injector/issues/208>`_:
version ``3.14.0`` hasn't worked on Python 3.5.2 (thanks to version ``3.14.0`` hasn't worked on Python 3.5.2 (thanks to
`Jeroen Entjes <https://github.com/JeroenEntjes>`_). `Jeroen Entjes <https://github.com/JeroenEntjes>`_).
- Remove deprecated ``assertEquals`` from tests.
3.14.0 3.14.0
------ ------

View File

@ -13,7 +13,7 @@ class PositionalInjectionTests(unittest.TestCase):
def test_get_value_with_not_provider(self): def test_get_value_with_not_provider(self):
injection = providers.PositionalInjection(123) injection = providers.PositionalInjection(123)
self.assertEquals(injection.get_value(), 123) self.assertEqual(injection.get_value(), 123)
def test_get_value_with_factory(self): def test_get_value_with_factory(self):
injection = providers.PositionalInjection(providers.Factory(object)) injection = providers.PositionalInjection(providers.Factory(object))
@ -61,11 +61,11 @@ class NamedInjectionTests(unittest.TestCase):
def test_get_name(self): def test_get_name(self):
injection = providers.NamedInjection('name', 123) injection = providers.NamedInjection('name', 123)
self.assertEquals(injection.get_name(), 'name') self.assertEqual(injection.get_name(), 'name')
def test_get_value_with_not_provider(self): def test_get_value_with_not_provider(self):
injection = providers.NamedInjection('name', 123) injection = providers.NamedInjection('name', 123)
self.assertEquals(injection.get_value(), 123) self.assertEqual(injection.get_value(), 123)
def test_get_value_with_factory(self): def test_get_value_with_factory(self):
injection = providers.NamedInjection('name', injection = providers.NamedInjection('name',

View File

@ -8,4 +8,4 @@ from dependency_injector import __version__
class VersionTest(unittest.TestCase): class VersionTest(unittest.TestCase):
def test_version_follows_semantic_versioning(self): def test_version_follows_semantic_versioning(self):
self.assertEquals(len(__version__.split('.')), 3) self.assertEqual(len(__version__.split('.')), 3)