def test_equivalent_desc_have_same_representations_and_run(self): for descriptions, value, type_, text in self.known_values: chan = Channel(descriptions[0]) for desc in descriptions: chan2 = Channel(desc) chan.run(self.bits) self.assertEqual(repr(chan), repr(chan2))
def test_intervals(self): "should have the proper representation and should be run on input" for desc in ("1/7", "1-2", "1-2/7"): # TODO to complete chan = Channel(desc) chan.run(self.bits)