Tests: Remove unnecessary imports and simplify template.t

This commit is contained in:
Renato Alves
2015-06-06 02:21:08 +01:00
parent 68647ed25e
commit 2962c0d99a
26 changed files with 500 additions and 489 deletions

View File

@@ -29,11 +29,11 @@
import sys
import os
import unittest
from datetime import datetime
# Ensure python finds the local simpletap module
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
from basetest import Task, TestCase, Taskd, ServerTestCase
from basetest import Task, TestCase
from basetest import Taskd, ServerTestCase
class TestBugNumber(TestCase):
@@ -56,7 +56,7 @@ class TestBugNumber(TestCase):
code, out, err = self.t(command)
expected = "Copyright \(C\) \d{4} - %d" % (datetime.now().year,)
expected = "Copyright \(C\) \d{4} - %d" % (2010,)
self.assertRegexpMatches(out, expected)
# TAP diagnostics on the bas