#NEWLINE# def get_test_run_by_id( test_run_id , session = None ) : #NEWLINE# #INDENT# "Get an individual test run by it's id.\n\n    :param str test_run_id: The id for the test run\n    :param session: optional session object if one isn't provided a new session\n                    will be acquired for the duration of this operation\n\n    :return: The specified test run object\n    :rtype: subunit2sql.models.TestRun\n    " #NEWLINE# session = ( session or get_session ( ) ) #NEWLINE# test_run = db_utils . model_query ( models . TestRun , session = session ) . filter_by ( id = test_run_id ) . first ( ) #NEWLINE# return session