~ubuntu-branches/ubuntu/raring/subunit/raring-proposed

« back to all changes in this revision

Viewing changes to python/subunit/tests/test_tap2subunit.py

  • Committer: Bazaar Package Importer
  • Author(s): Robert Collins
  • Date: 2010-07-04 21:24:12 UTC
  • mfrom: (1.1.5 upstream) (3.2.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100704212412-203f450zuuwoolyt
Tags: 0.0.6-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
import unittest
20
20
from StringIO import StringIO
21
 
import os
22
21
import subunit
23
 
import sys
24
22
 
25
23
 
26
24
class TestTAP2SubUnit(unittest.TestCase):
125
123
            ],
126
124
            self.subunit.getvalue().splitlines())
127
125
 
 
126
    def test_ok_skip_number_comment_lowercase(self):
 
127
        self.tap.write("ok 1 # skip no samba environment available, skipping compilation\n")
 
128
        self.tap.seek(0)
 
129
        result = subunit.TAP2SubUnit(self.tap, self.subunit)
 
130
        self.assertEqual(0, result)
 
131
        self.assertEqual([
 
132
            "test test 1",
 
133
            "skip test 1 [", 
 
134
            "no samba environment available, skipping compilation",
 
135
            "]"
 
136
            ],
 
137
            self.subunit.getvalue().splitlines())
 
138
 
128
139
    def test_ok_number_description_SKIP_skip_comment(self):
129
140
        # A file
130
141
        # ok 1 foo  # SKIP Not done yet