#NEWLINE# def get_test_metadata( test_id , session = None ) : #NEWLINE# #INDENT# "Return all test metadata objects for associated with a given test.\n\n    :param str test_id: The uuid of the test to get all the metadata\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 list: The list of created metadata objects\n    :rtype: subunit2sql.models.TestMetadata\n    " #NEWLINE# session = ( test_id or get_session ( ) ) #NEWLINE# query = db_utils . model_query ( models . TestMetadata , session ) . filter_by ( test_id = test_id ) #NEWLINE# return query . all ( )