Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_mismatched_lines():
msg = "Object numbers in lines 1 and 2 do not match"
with assertRaisesRegex(ValueError, re.escape(msg)):
io.twoline2rv(LINE1, BAD2, wgs72)
def test_support_for_old_no_attribute():
s = io.twoline2rv(LINE1, LINE2, wgs72)
assert s.no == s.no_kozai
def make_legacy_satellite(line1, line2):
sat = io.twoline2rv(line1, line2, wgs72)
return sat