buildframework/helium/sf/python/pythoncore/lib/pythoncorecpythontests/test_atsant.py
branchhelium-9.0
changeset 618 df88fead2976
parent 587 85df38eb4012
equal deleted inserted replaced
587:85df38eb4012 618:df88fead2976
    29 
    29 
    30 def test_atsant():
    30 def test_atsant():
    31     """test atsant and check 3 files in the file"""
    31     """test atsant and check 3 files in the file"""
    32     files = atsant.files_to_test(os.path.join(os.environ['TEST_DATA'], 'data/packageiad/layers.sysdef.xml'), None, None, 'z:')
    32     files = atsant.files_to_test(os.path.join(os.environ['TEST_DATA'], 'data/packageiad/layers.sysdef.xml'), None, None, 'z:')
    33     assert len(files) == 3
    33     assert len(files) == 3
    34     
    34 
    35 def test_IConfigATS():
    35 def test_IConfigATS():
       
    36     """test I config ATS"""
    36     tmpdir = tempfile.mkdtemp()
    37     tmpdir = tempfile.mkdtemp()
    37     shutil.copy(os.path.join(os.environ['TEST_DATA'], 'data', 'example_corernd.iconfig.xml'), os.path.join(tmpdir, 'example_corernd.iconfig.xml'))
    38     shutil.copy(os.path.join(os.environ['TEST_DATA'], 'data', 'example_corernd.iconfig.xml'), os.path.join(tmpdir, 'example_corernd.iconfig.xml'))
    38     open(os.path.join(tmpdir, 'RX-60_00_rnd.core.fpsx'), 'w').close()
    39     open(os.path.join(tmpdir, 'RX-60_00_rnd.core.fpsx'), 'w').close()
    39     open(os.path.join(tmpdir, 'RX-60_00.01_rnd.rofs2.fpsx'), 'w').close()
    40     open(os.path.join(tmpdir, 'RX-60_00.01_rnd.rofs2.fpsx'), 'w').close()
    40     open(os.path.join(tmpdir, 'RX-60_00_rnd.rofs3.fpsx'), 'w').close()
    41     open(os.path.join(tmpdir, 'RX-60_00_rnd.rofs3.fpsx'), 'w').close()
    41     open(os.path.join(tmpdir, 'RX-60_00_rnd.udaerase.fpsx'), 'w').close()
    42     open(os.path.join(tmpdir, 'RX-60_00_rnd.udaerase.fpsx'), 'w').close()
    42     ic = atsant.IConfigATS(tmpdir)
    43     i_c = atsant.IConfigATS(tmpdir, '')
    43     ic.findimages()
    44     i_c.findimages()