def run_python_tests():
    ' Runs the Python tests.\n  Returns:\n    True if the tests all succeed, False if there are failures. '
    print('Starting tests...')
    loader = unittest.TestLoader()
    dir_path = os.path.dirname(os.path.realpath(__file__))
    suite = loader.discover('rhodopsin/tests', top_level_dir=dir_path)
    test_result = unittest.TextTestRunner(verbosity=2).run(suite)
    if (not test_result.wasSuccessful()):
        return False
    return True
Runs the Python tests.
Returns:
  True if the tests all succeed, False if there are failures.
def run_python_tests():
    ' Runs the Python tests.\n  Returns:\n    True if the tests all succeed, False if there are failures. '
    print('Starting tests...')
    loader = unittest.TestLoader()
    dir_path = os.path.dirname(os.path.realpath(__file__))
    suite = loader.discover('rhodopsin/tests', top_level_dir=dir_path)
    test_result = unittest.TextTestRunner(verbosity=2).run(suite)
    if (not test_result.wasSuccessful()):
        return False
    return True