diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2014-07-12 09:00:52 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-07-12 09:00:52 -0400 |
| commit | 7003458aa6b13578f8862dca6041ec5c55c21027 (patch) | |
| tree | 083fff86b611c5527e381ffb12c19d39da474108 /setuptools/tests | |
| parent | 4cd8b93b95ccac00f3926ffbcead754331853c6d (diff) | |
| download | external_python_setuptools-7003458aa6b13578f8862dca6041ec5c55c21027.tar.gz external_python_setuptools-7003458aa6b13578f8862dca6041ec5c55c21027.tar.bz2 external_python_setuptools-7003458aa6b13578f8862dca6041ec5c55c21027.zip | |
More simple asserts
Diffstat (limited to 'setuptools/tests')
| -rw-r--r-- | setuptools/tests/test_resources.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/setuptools/tests/test_resources.py b/setuptools/tests/test_resources.py index 279fd139..1f3b747d 100644 --- a/setuptools/tests/test_resources.py +++ b/setuptools/tests/test_resources.py @@ -605,8 +605,10 @@ class NamespaceTests(TestCase): self.fail("Setuptools tried to import the parent namespace package") # check the _namespace_packages dict assert "pkg1.pkg2" in pkg_resources._namespace_packages - self.assertEqual(pkg_resources._namespace_packages["pkg1"], ["pkg1.pkg2"]) + assert pkg_resources._namespace_packages["pkg1"] == ["pkg1.pkg2"] # check the __path__ attribute contains both paths - self.assertEqual(pkg1.pkg2.__path__, [ + expected = [ os.path.join(self._tmpdir, "site-pkgs", "pkg1", "pkg2"), - os.path.join(self._tmpdir, "site-pkgs2", "pkg1", "pkg2")]) + os.path.join(self._tmpdir, "site-pkgs2", "pkg1", "pkg2"), + ] + assert pkg1.pkg2.__path__ == expected |
