_h_easy(k, m, s)
class ZFecTest(unittest.TestCase):
- def test_instantiate_no_args(self):
+ def test_instantiate_encoder_no_args(self):
try:
e = zfec.Encoder()
except TypeError:
# Oops, it should have raised an exception.
self.fail("Should have raised exception from incorrect arguments to constructor.")
+ def test_instantiate_decoder_no_args(self):
+ try:
+ e = zfec.Decoder()
+ except TypeError:
+ # Okay, so that's because we're required to pass constructor args.
+ pass
+ else:
+ # Oops, it should have raised an exception.
+ self.fail("Should have raised exception from incorrect arguments to constructor.")
+
def test_from_agl_c(self):
self.failUnless(zfec._fec.test_from_agl())