|
|
@@ -0,0 +1,17 @@ |
|
|
|
"""test_adjusters.py -- test pipeline Adjusters (eg TargetTimeAdjuster)""" |
|
|
|
import unittest |
|
|
|
import pipeline.adjusters as adjusters |
|
|
|
|
|
|
|
class TestAdjuster(unittest.TestCase): |
|
|
|
"""Test the generic Adjuster class""" |
|
|
|
|
|
|
|
def test_init(self): |
|
|
|
"""Test the Adjuster can be initialised""" |
|
|
|
adjuster = adjusters.Adjuster() |
|
|
|
self.assertEqual(adjuster.features, []) |
|
|
|
|
|
|
|
def test_adjust(self): |
|
|
|
"""Test the generic adjust""" |
|
|
|
adjuster = adjusters.Adjuster() |
|
|
|
self.assertEqual(adjuster.adjust(), []) |
|
|
|
self.assertEqual(adjuster.features, []) |