TI-102: Add tests

This commit is contained in:
Thomas Lauf 2018-01-19 16:24:39 +01:00
parent 4a18500191
commit 47466cdcab
4 changed files with 374 additions and 8 deletions

View file

@ -26,10 +26,10 @@
#
###############################################################################
import sys
import os
import sys
import unittest
from datetime import datetime
# Ensure python finds the local simpletap module
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
@ -51,6 +51,7 @@ from basetest import Timew, TestCase
# self.assertNotRegexpMatches(text, pattern)
# self.tap("")
class TestTrack(TestCase):
def setUp(self):
"""Executed before each test in the class"""
@ -124,6 +125,7 @@ class TestTrack(TestCase):
j = self.t.export()
self.assertTrue(len(j) > 0)
if __name__ == "__main__":
from simpletap import TAPTestRunner
unittest.main(testRunner=TAPTestRunner())