def testReturnValueIsBits(self): uut = self.get_default_encoder() encoded = uut.encode('abc') self.assertIsInstance(encoded, Bits)