buildframework/helium/sf/python/pythoncore/lib/pythoncorecpythontests/test_atsant.py
--- a/buildframework/helium/sf/python/pythoncore/lib/pythoncorecpythontests/test_atsant.py Tue Apr 27 08:33:08 2010 +0300
+++ b/buildframework/helium/sf/python/pythoncore/lib/pythoncorecpythontests/test_atsant.py Wed Jun 16 16:51:40 2010 +0300
@@ -27,17 +27,23 @@
import atsant
-def test_atsant():
+def test_atsant_multipledrop():
"""test atsant and check 3 files in the file"""
- files = atsant.files_to_test(os.path.join(os.environ['TEST_DATA'], 'data/packageiad/layers.sysdef.xml'), None, None, 'z:')
+ files = atsant.files_to_test(os.path.join(os.environ['TEST_DATA'], 'data/packageiad/layers.sysdef.xml'), None, None, 'z:', 'false')
assert len(files) == 3
-
+
+def test_atsant_singledrop():
+ """test atsant and check 1 files in the file"""
+ files = atsant.files_to_test(os.path.join(os.environ['TEST_DATA'], 'data/packageiad/layers.sysdef.xml'), None, None, 'z:', 'true')
+ assert len(files) == 1
+
def test_IConfigATS():
+ """test I config ATS"""
tmpdir = tempfile.mkdtemp()
shutil.copy(os.path.join(os.environ['TEST_DATA'], 'data', 'example_corernd.iconfig.xml'), os.path.join(tmpdir, 'example_corernd.iconfig.xml'))
open(os.path.join(tmpdir, 'RX-60_00_rnd.core.fpsx'), 'w').close()
open(os.path.join(tmpdir, 'RX-60_00.01_rnd.rofs2.fpsx'), 'w').close()
open(os.path.join(tmpdir, 'RX-60_00_rnd.rofs3.fpsx'), 'w').close()
open(os.path.join(tmpdir, 'RX-60_00_rnd.udaerase.fpsx'), 'w').close()
- ic = atsant.IConfigATS(tmpdir)
- ic.findimages()
\ No newline at end of file
+ i_c = atsant.IConfigATS(tmpdir, '')
+ i_c.findimages()