Ejemplo n.º 1
0
 def test_code_file(self, capsys):
     """Test utils.codify.code_file"""
     filename = get_testdata_file("rtplan.dcm")
     args = ["--save-as", r"c:\temp\testout.dcm", filename]
     codify_main(100, args)
     out, err = capsys.readouterr()
     assert r"c:\temp\testout.dcm" in out
Ejemplo n.º 2
0
 def test_code_file(self, capsys):
     """Test utils.codify.code_file"""
     filename = get_testdata_files("rtplan.dcm")[0]
     args = ["--save-as", r"c:\temp\testout.dcm", filename]
     codify_main(100, args)
     out, err = capsys.readouterr()
     assert r"c:\temp\testout.dcm" in out