Ejemplo n.º 1
0
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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 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)