diff options
| author | Thomi Richards <thomi.richards@canonical.com> | 2013-11-19 08:24:45 +1300 |
|---|---|---|
| committer | Thomi Richards <thomi.richards@canonical.com> | 2013-11-19 08:24:45 +1300 |
| commit | 78bffde2922f10f68aef9db48cea3a00e57ff262 (patch) | |
| tree | 189af07a2199d7cda1b4fcb2feda23d3c809e2cd /python | |
| parent | b705438d10498be7b4aad77cd0650f7a0c4614e0 (diff) | |
| download | subunit-git-78bffde2922f10f68aef9db48cea3a00e57ff262.tar.gz | |
Clean up tests: Don't use MatchesListwise for a single-length list.
Diffstat (limited to 'python')
| -rw-r--r-- | python/subunit/tests/test_output_filter.py | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/python/subunit/tests/test_output_filter.py b/python/subunit/tests/test_output_filter.py index 05b6267..fb56057 100644 --- a/python/subunit/tests/test_output_filter.py +++ b/python/subunit/tests/test_output_filter.py @@ -23,7 +23,6 @@ from testtools.matchers import ( Equals, Matcher, Mismatch, - MatchesListwise, ) from testtools.testresult.doubles import StreamResult @@ -94,10 +93,8 @@ class ByteStreamCompatibilityTests(TestCase): ) self.assertThat( - result._events, - MatchesListwise([ - MatchesCall(call='status', test_id='foo', test_status='inprogress'), - ]) + result._events[0], + MatchesCall(call='status', test_id='foo', test_status='inprogress') ) def test_pass_generates_success(self): @@ -106,10 +103,8 @@ class ByteStreamCompatibilityTests(TestCase): ) self.assertThat( - result._events, - MatchesListwise([ - MatchesCall(call='status', test_id='foo', test_status='success'), - ]) + result._events[0], + MatchesCall(call='status', test_id='foo', test_status='success') ) def test_fail_generates_fail(self): @@ -118,10 +113,8 @@ class ByteStreamCompatibilityTests(TestCase): ) self.assertThat( - result._events, - MatchesListwise([ - MatchesCall(call='status', test_id='foo', test_status='fail'), - ]) + result._events[0], + MatchesCall(call='status', test_id='foo', test_status='fail') ) def test_skip_generates_skip(self): @@ -130,10 +123,8 @@ class ByteStreamCompatibilityTests(TestCase): ) self.assertThat( - result._events, - MatchesListwise([ - MatchesCall(call='status', test_id='foo', test_status='skip'), - ]) + result._events[0], + MatchesCall(call='status', test_id='foo', test_status='skip') ) |
