def test_ctors(self): f = PacBioBam.Frames() self.assertEqual(0, len(f.Data())) f2 = PacBioBam.Frames(self.testframes) d = f2.Data() self.assertEqual(len(self.testframes), len(d)) for i, v in enumerate(d): self.assertEqual(int(self.testframes[i]), int(v))
def test_encode(self): f = PacBioBam.Frames(self.testframes) e = f.Encode() self.assertEqual(len(self.encoded), len(e)) for i, v in enumerate(e): self.assertEqual(int(self.encoded[i]), int(v))