Skip to content

Instantly share code, notes, and snippets.

@pilipolio
Created April 19, 2013 09:23
Show Gist options
  • Save pilipolio/5419179 to your computer and use it in GitHub Desktop.
Save pilipolio/5419179 to your computer and use it in GitHub Desktop.
Output from testing_iterables_with_unittest.py
guillaume@kelmis:/scratch/events-warehouse-develop/events-warehouse (feature/13225DimUserIdTable)$ python testing_iterables_with_unittest.py
F.FF
======================================================================
FAIL: test_empty_actual (__main__.TestSequenceFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "testing_iterables_with_unittest.py", line 14, in test_empty_actual
self.assertSequenceEqual(actual_iterable, self.expected_iterable)
AssertionError: Sequences differ: [] != [0, 1, 2]
Second sequence contains 3 additional elements.
First extra element 0:
0
- []
+ [0, 1, 2]
======================================================================
FAIL: test_one_value_off_actual (__main__.TestSequenceFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "testing_iterables_with_unittest.py", line 11, in test_one_value_off_actual
self.assertSequenceEqual(actual_iterable, self.expected_iterable)
AssertionError: Sequences differ: [0, 4, 2] != [0, 1, 2]
First differing element 1:
4
1
- [0, 4, 2]
? ^
+ [0, 1, 2]
? ^
======================================================================
FAIL: test_too_long_actual (__main__.TestSequenceFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "testing_iterables_with_unittest.py", line 17, in test_too_long_actual
self.assertSequenceEqual(actual_iterable, self.expected_iterable)
AssertionError: Sequences differ: [0, 1, 2, 3] != [0, 1, 2]
First sequence contains 1 additional elements.
First extra element 3:
3
- [0, 1, 2, 3]
? ---
+ [0, 1, 2]
----------------------------------------------------------------------
Ran 4 tests in 0.001s
FAILED (failures=3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment