Merge pull request #9 in TM/task from ~UNODE/task:2.4.0 to 2.4.0

* commit '6007da7218':
  Unittest - Renumber bug 1377 and strip leftover comments
  Unittest - No need to check for exit code as it's already implicit
This commit is contained in:
Paul Beckingham 2014-07-15 13:59:05 +00:00
commit f24db73a55
3 changed files with 3 additions and 8 deletions

View file

@ -40,8 +40,7 @@ class TestBug1359(TestCase):
def test_add_hyphenated(self):
""""one-two-three" in description triggers Malformed ID error"""
code, out, err = self.t(("add", "one-two-three.ca"))
self.assertEqual(code, 0)
self.t(("add", "one-two-three.ca"))
code, out, err = self.t(("1", "info"))
self.assertIn("one-two-three.ca", out)

View file

@ -29,15 +29,13 @@
import sys
import os
import unittest
# Ensure python finds the local simpletap module
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
from basetest import Task, TestCase
class TestBugNumber(TestCase):
class TestBug1377(TestCase):
def setUp(self):
"""Executed before each test in the class"""
self.t = Task()
def test_bad_tag_parser(self):
@ -52,7 +50,6 @@ class TestBugNumber(TestCase):
if __name__ == "__main__":
from simpletap import TAPTestRunner
#unittest.main()
unittest.main(testRunner=TAPTestRunner())
# vim: ai sts=4 et sw=4

View file

@ -42,8 +42,7 @@ class TestBug268(TestCase):
"""escaped backslashes do not work with 'modify'"""
self.t(("add", "a", "b", "or", "c"))
code, out, err = self.t(("1", "modify", "/a\\ b/a\\/b/"))
self.assertEqual(code, 0)
self.t(("1", "modify", "/a\\ b/a\\/b/"))
code, out, err = self.t(("1", "info"))
self.assertIn("a/b or c", out)