35 def test_atsant_singledrop(): |
35 def test_atsant_singledrop(): |
36 """test atsant and check 1 files in the file""" |
36 """test atsant and check 1 files in the file""" |
37 files = atsant.files_to_test(os.path.join(os.environ['TEST_DATA'], 'data/packageiad/layers.sysdef.xml'), None, None, 'z:', 'true') |
37 files = atsant.files_to_test(os.path.join(os.environ['TEST_DATA'], 'data/packageiad/layers.sysdef.xml'), None, None, 'z:', 'true') |
38 assert len(files) == 1 |
38 assert len(files) == 1 |
39 |
39 |
|
40 def test_atsant_multipledrop_with_sysdef3(): |
|
41 """test atsant and check MULTIPLE drop files are created when sysdef3 files are in use""" |
|
42 files = atsant.files_to_test(os.path.join(os.environ['TEST_DATA'], 'data/packageiad/sysdef3_test.xml'), None, None, 'z:', 'false', True) |
|
43 assert len(files) == 2 |
|
44 |
|
45 def test_atsant_singledrop_with_sysdef3(): |
|
46 """test atsant and check SINGLE drop file is created when sysdef3 files are in use""" |
|
47 files = atsant.files_to_test(os.path.join(os.environ['TEST_DATA'], 'data/packageiad/sysdef3_test.xml'), None, None, 'z:', 'true', True) |
|
48 |
|
49 assert len(files) == 1 |
|
50 |
40 def test_IConfigATS(): |
51 def test_IConfigATS(): |
41 """test I config ATS""" |
52 """test I config ATS""" |
42 tmpdir = tempfile.mkdtemp() |
53 tmpdir = tempfile.mkdtemp() |
43 shutil.copy(os.path.join(os.environ['TEST_DATA'], 'data', 'example_corernd.iconfig.xml'), os.path.join(tmpdir, 'example_corernd.iconfig.xml')) |
54 shutil.copy(os.path.join(os.environ['TEST_DATA'], 'data', 'example_corernd.iconfig.xml'), os.path.join(tmpdir, 'example_corernd.iconfig.xml')) |
44 open(os.path.join(tmpdir, 'RX-60_00_rnd.core.fpsx'), 'w').close() |
55 open(os.path.join(tmpdir, 'RX-60_00_rnd.core.fpsx'), 'w').close() |