diff --git a/tests/unit/providers/test_selector_py2_py3.py b/tests/unit/providers/test_selector_py2_py3.py index 8d965ce9..5e298a7b 100644 --- a/tests/unit/providers/test_selector_py2_py3.py +++ b/tests/unit/providers/test_selector_py2_py3.py @@ -141,12 +141,10 @@ class SelectorTests(unittest.TestCase): two=providers.Object(2), ) - self.assertEqual( + self.assertIn( + ''.format( - repr(self.selector), - repr(provider.one), - repr(provider.two), - hex(id(provider)), - ), ) + self.assertIn('one={0}'.format(repr(provider.one)), repr(provider)) + self.assertIn('two={0}'.format(repr(provider.two)), repr(provider)) + self.assertIn('at {0}'.format(hex(id(provider))), repr(provider))