Created
May 2, 2011 14:16
-
-
Save heynemann/951663 to your computer and use it in GitHub Desktop.
Pyvows better error reporting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
✗ Should equal regular http get | |
Expected body of /home/heynemann/dev/thumbor/vows/fixtures/conselheira_tutelar.jpg to match topic, but it didn't | |
Traceback (most recent call last): | |
File "/home/heynemann/.virtualenvs/home/lib/python2.6/site-packages/pyvows/runner.py", line 113, in async_run_vow | |
result = member(context_instance, topic) | |
File "/home/heynemann/dev/thumbor/vows/http_loader_vows.py", line 76, in should_equal_regular_http_get | |
expect(topic).to_match_contents_of(fixture_for('conselheira_tutelar.jpg')) | |
File "/home/heynemann/.virtualenvs/home/lib/python2.6/site-packages/pyvows/core.py", line 50, in assert_topic | |
return getattr(Vows.Assert, method_name)(self.topic, *args, **kw) | |
File "/home/heynemann/.virtualenvs/home/lib/python2.6/site-packages/pyvows/core.py", line 106, in exec_assertion | |
return method_name(*args, **kw) | |
File "/home/heynemann/.virtualenvs/home/lib/python2.6/site-packages/pyvows/core.py", line 104, in method_name | |
method(*args, **kw) | |
File "/home/heynemann/dev/thumbor/vows/http_loader_vows.py", line 23, in to_match_contents_of | |
assert file(filepath).read() == topic, "Expected body of %s to match topic, but it didn't" % filepath | |
AssertionError: Expected body of /home/heynemann/dev/thumbor/vows/fixtures/conselheira_tutelar.jpg to match topic, but it didn't | |
Original Exception | |
Traceback (most recent call last): | |
File "/home/heynemann/.virtualenvs/home/lib/python2.6/site-packages/pyvows/runner.py", line 62, in async_run_context | |
topic = topic_func(*topic_list) | |
File "/home/heynemann/dev/thumbor/vows/http_loader_vows.py", line 70, in topic | |
result = self._wait() | |
File "/home/heynemann/.virtualenvs/home/lib/python2.6/site-packages/tornado_pyvows/context.py", line 76, in timeout_func | |
timeout) | |
AssertionError: Async operation timed out after 5 seconds | |
(found in /home/heynemann/dev/thumbor/vows/http_loader_vows.py at line 74) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment