def testBoth2(self): studentCompress = hw.compress(('1'*17 + '0'*15)*2) studentAnswer = hw.uncompress(studentCompress) self.assertEqual(studentAnswer,('1'*17 + '0'*15)*2)
def testBoth1(self): studentCompress = hw.compress('1'*63 + '0') studentAnswer = hw.uncompress(studentCompress) self.assertEqual(studentAnswer,'1'*63 + '0')