openc3/python/ruby_to_python.py
Consider simplifying this complex logical expression. Open
Open
if "expect" in line and ".to eql" in line:
line = line.replace("expect(", "self.assertEqual(")
line = re.sub(r"\)\.to eql(.*)", r", \1)", line)
elif "expect" in line and ".to eq" in line:
line = line.replace("expect(", "self.assertEqual(")