def extract_tests(self):
        """
        Processes a loaded YAML document and
        creates test objects based on input
        """
        try:
            return map(
                lambda test_dict: Test(test_dict, self.meta),
                self.yaml_file['tests']
            )
        except errors.TestError as e:
            e.args[1]['meta'] = self.meta
            raise e
        except Exception as e:
            raise Exception(
                'Caught error. Message: %s on test with metadata: %s'
                % (str(e), str(self.meta))
            )
def extract_tests ( self ) : try : return map ( lambda test_dict : Test ( test_dict , self . meta ) , self . yaml_file [ 'tests' ] ) except errors . TestError as e : e . args [ 1 ] [ 'meta' ] = self . meta raise e except Exception as e : raise Exception ( 'Caught error. Message: %s on test with metadata: %s' % ( str ( e ) , str ( self . meta ) ) )
Processes a loaded YAML document and
        creates test objects based on input