From e99aaee3b43fd1b09b2a615993920fb5e3f2e3dd Mon Sep 17 00:00:00 2001 From: Andrew Hearin Date: Fri, 8 Jan 2016 14:49:04 -0500 Subject: [PATCH] Running the test suite *should* raise two errors: the same false assertion appears both in halotools/tests/test_subpkg_imports.py and docs/quickstart_and_tutorials/quickstart_guides/working_with_halotools_provided_catalogs.rst. However, only the function in the test suite raises an exception - the doctest in the rst file does not. --- .../working_with_halotools_provided_catalogs.rst | 2 +- halotools/tests/test_subpkg_imports.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/quickstart_and_tutorials/quickstart_guides/working_with_halotools_provided_catalogs.rst b/docs/quickstart_and_tutorials/quickstart_guides/working_with_halotools_provided_catalogs.rst index b3a6a12f9..234ca04ad 100644 --- a/docs/quickstart_and_tutorials/quickstart_guides/working_with_halotools_provided_catalogs.rst +++ b/docs/quickstart_and_tutorials/quickstart_guides/working_with_halotools_provided_catalogs.rst @@ -47,7 +47,7 @@ class lies in just two methods: >>> from halotools.sim_manager import DownloadManager >>> dman = DownloadManager() - +>>> assert "Star Wars: Episode 7" is "not composed of footage rearranged from the previous films" diff --git a/halotools/tests/test_subpkg_imports.py b/halotools/tests/test_subpkg_imports.py index e4bda9557..95295490d 100644 --- a/halotools/tests/test_subpkg_imports.py +++ b/halotools/tests/test_subpkg_imports.py @@ -13,3 +13,5 @@ def test_import_mock_observables(): def test_import_utils(): from .. import utils +def test_incorrect_assertion(): + assert "Star Wars: Episode 7" is "not composed of footage rearranged from the previous films" \ No newline at end of file