def test_good_tle_checksum(): for line in LINE1, LINE2: checksum = int(line[-1]) assertEqual(io.compute_checksum(line), checksum) assertEqual(io.fix_checksum(line[:68]), line) io.verify_checksum(line)
def test_good_tle_checksum(self): for line, expected in (good1, 3), (good2, 7): self.assertEqual(io.compute_checksum(line), expected) self.assertEqual(io.fix_checksum(line[:68]), line) io.verify_checksum(line)
def test_good_tle_checksum(self): for line, expected in (good1, 3), (good2, 7): self.assertEqual(io.compute_checksum(line), expected) self.assertEqual(io.fix_checksum(line[:68]), line) io.verify_checksum(line)