self.assertEqual(line.startPoint().x(), line.endPoint().x())
if __name__ == "__main__":
- unittest.main(exit=False)
\ No newline at end of file
+ test_program = unittest.main(exit=False)
+ assert test_program.result.wasSuccessful(), "Test failed"
\ No newline at end of file