Pārlūkot izejas kodu

test: add test of generic Adjuster base class

main
Rob Hallam pirms 2 mēnešiem
vecāks
revīzija
62932f6b08
1 mainītis faili ar 17 papildinājumiem un 0 dzēšanām
  1. +17
    -0
      test/test_adjusters.py

+ 17
- 0
test/test_adjusters.py Parādīt failu

@@ -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, [])

Notiek ielāde…
Atcelt
Saglabāt