#NEWLINE# def create_yaml( self , yamlfile = '' , srcdb = False ) : #NEWLINE# #INDENT# dbname = ( self . srcdb . name if dbname else self . db . name ) #NEWLINE# args = [ self . dbtoyaml ] #NEWLINE# args . extend ( self . _db_params ( ) ) #NEWLINE# if yamlfile : #NEWLINE# #INDENT# args . extend ( [ '-o' , yamlfile , dbname ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# args . extend ( [ '-r' , TEST_DIR , '-m' , dbname ] ) #NEWLINE# #UNINDENT# self . invoke ( args )