summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRamiro Morales <cramm0@gmail.com>2013-05-12 17:29:34 -0300
committerRamiro Morales <cramm0@gmail.com>2013-05-12 17:29:34 -0300
commit956973ca6c47219d5dc3c645bc34af8fb58b8f24 (patch)
treedd258e12a448381c01fdb2983ac41295b460a6d4 /docs
parent2c62a509deb50e39375b0cd44cfc85a743978fdc (diff)
Updated test failure example.
Diffstat (limited to 'docs')
-rw-r--r--docs/index.txt2
-rw-r--r--docs/topics/testing/overview.txt20
2 files changed, 6 insertions, 16 deletions
diff --git a/docs/index.txt b/docs/index.txt
index 3b5e74f1a2..7f9d1bd032 100644
--- a/docs/index.txt
+++ b/docs/index.txt
@@ -185,7 +185,7 @@ testing of Django applications:
* **Testing:**
:doc:`Introduction <topics/testing/index>` |
:doc:`Writing and running tests <topics/testing/overview>` |
- :doc:`Advanced topics <topics/testing/advanced>` |
+ :doc:`Advanced topics <topics/testing/advanced>`
* **Deployment:**
:doc:`Overview <howto/deployment/index>` |
diff --git a/docs/topics/testing/overview.txt b/docs/topics/testing/overview.txt
index 5023e099aa..2a8b4613a7 100644
--- a/docs/topics/testing/overview.txt
+++ b/docs/topics/testing/overview.txt
@@ -280,25 +280,15 @@ If there are test failures, however, you'll see full details about which tests
failed::
======================================================================
- FAIL: Doctest: ellington.core.throttle.models
+ FAIL: test_was_published_recently_with_future_poll (polls.tests.PollMethodTests)
----------------------------------------------------------------------
Traceback (most recent call last):
- File "/dev/django/test/doctest.py", line 2153, in runTest
- raise self.failureException(self.format_failure(new.getvalue()))
- AssertionError: Failed doctest test for myapp.models
- File "/dev/myapp/models.py", line 0, in models
+ File "/dev/mysite/polls/tests.py", line 16, in test_was_published_recently_with_future_poll
+ self.assertEqual(future_poll.was_published_recently(), False)
+ AssertionError: True != False
----------------------------------------------------------------------
- File "/dev/myapp/models.py", line 14, in myapp.models
- Failed example:
- throttle.check("actor A", "action one", limit=2, hours=1)
- Expected:
- True
- Got:
- False
-
- ----------------------------------------------------------------------
- Ran 2 tests in 0.048s
+ Ran 1 test in 0.003s
FAILED (failures=1)