tests/make_na_file_unit_tests.py
def makeNAFileTests():
    "Makes unit tests for the main NAFile classes."
    ffis = ("1001", "1010", "1020", "2010", "2110", "2160",
            "2310", "3010", "4010")

    with open("test_na_file_template.tmpl") as fh:
        template = fh.read()

    for ffi in ffis:
        content = template.replace("<FFI>", ffi)
        test_file_name = "test_na_file_%s.py" % ffi

        with open(test_file_name, "w") as fh:
            fh.write(content)

        print "Wrote:", test_file_name
Makes unit tests for the main NAFile classes.
Makes unit tests for the main NAFile classes.
Makes unit tests for the main NAFile classes .
def makeNAFileTests():
    ffis = ("1001", "1010", "1020", "2010", "2110", "2160",
            "2310", "3010", "4010")
    with open("test_na_file_template.tmpl") as fh:
        template = fh.read()
    for ffi in ffis:
        content = template.replace("<FFI>", ffi)
        test_file_name = "test_na_file_%s.py" % ffi
        with open(test_file_name, "w") as fh:
            fh.write(content)
        print "Wrote:", test_file_name
def makeNAFileTests ( ) : ffis = ( "1001" , "1010" , "1020" , "2010" , "2110" , "2160" , "2310" , "3010" , "4010" ) with open ( "test_na_file_template.tmpl" ) as fh : template = fh . read ( ) for ffi in ffis : content = template . replace ( "<FFI>" , ffi ) test_file_name = "test_na_file_%s.py" % ffi with open ( test_file_name , "w" ) as fh : fh . write ( content ) print "Wrote:" , test_file_name
Makes unit tests for the main NAFile classes.
Makes unit tests for the main NAFile classes .
"Makes unit tests for the main NAFile classes."