def get_translation_filename(filename): return repyhelper._get_module_name(filename) + ".py"
def get_translation_filename(filename): return repyhelper._get_module_name(filename) + '.py'
No output indicates success """ import os import repyhelper import test_utils #The (preexisting) repy file to use as a reference for translating SRCFILE = "rhtest_filetests.r2py" #The temporary file to create to perform checks against TESTFILE = "rhtest_filetests_new.r2py" #The translation name corresponding to TESTFILE TESTFILE_TR = repyhelper._get_module_name(TESTFILE) + ".py" def create_testfile(filename, contents): """ Create a file in the current directory with a specified translation tagline file tag returns the name of the created file """ fh = open(filename, 'w') print >> fh, contents fh.close() return filename create_testfile(TESTFILE, repyhelper.TRANSLATION_TAGLINE)
No output indicates success """ import os import repyhelper import test_utils #The (preexisting) repy file to use as a reference for translating SRCFILE = "rhtest_filetests.repy" #The temporary file to create to perform checks against TESTFILE = "rhtest_filetests_new.repy" #The translation name corresponding to TESTFILE TESTFILE_TR = repyhelper._get_module_name(TESTFILE) + ".py" def create_testfile(filename, contents): """ Create a file in the current directory with a specified translation tagline file tag returns the name of the created file """ fh = open(filename, 'w') print >> fh, contents fh.close() return filename create_testfile(TESTFILE, repyhelper.TRANSLATION_TAGLINE)