From 16feb424b3935287f58d8036c65b2be86915c3e2 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 11 Apr 2010 20:22:46 +0200 Subject: Handle lowercase skip/todo in tap. --- python/subunit/tests/test_tap2subunit.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'python/subunit/tests') diff --git a/python/subunit/tests/test_tap2subunit.py b/python/subunit/tests/test_tap2subunit.py index febfe9d..c4ca4cd 100644 --- a/python/subunit/tests/test_tap2subunit.py +++ b/python/subunit/tests/test_tap2subunit.py @@ -18,9 +18,7 @@ import unittest from StringIO import StringIO -import os import subunit -import sys class TestTAP2SubUnit(unittest.TestCase): @@ -125,6 +123,19 @@ class TestTAP2SubUnit(unittest.TestCase): ], self.subunit.getvalue().splitlines()) + def test_ok_skip_number_comment_lowercase(self): + self.tap.write("ok 1 # skip no samba environment available, skipping compilation\n") + self.tap.seek(0) + result = subunit.TAP2SubUnit(self.tap, self.subunit) + self.assertEqual(0, result) + self.assertEqual([ + "test test 1", + "skip test 1 [", + "no samba environment available, skipping compilation", + "]" + ], + self.subunit.getvalue().splitlines()) + def test_ok_number_description_SKIP_skip_comment(self): # A file # ok 1 foo # SKIP Not done yet -- cgit v1.2.1