buildframework/helium/sf/python/pythoncore/lib/pythoncoretests/test_ido.py
changeset 628 7c4a911dc066
parent 588 c7c26511138f
equal deleted inserted replaced
588:c7c26511138f 628:7c4a911dc066
    45 #            assert status == False
    45 #            assert status == False
    46 
    46 
    47     def test_ido_sysdef_valid(self):
    47     def test_ido_sysdef_valid(self):
    48         """ Verifying get_sysdef_location method with valid sysdef"""
    48         """ Verifying get_sysdef_location method with valid sysdef"""
    49         test_sysdef_file = os.path.join(os.environ['TEST_DATA'], 'data', 'packageiad', 'layers.sysdef.xml')
    49         test_sysdef_file = os.path.join(os.environ['TEST_DATA'], 'data', 'packageiad', 'layers.sysdef.xml')
    50         location = ido.get_sysdef_location(test_sysdef_file); 
    50         location = ido.get_sysdef_location(test_sysdef_file) 
    51         assert location != None
    51         assert location != None
    52 
    52 
    53     def test_ido_sysdef_invalid(self):
    53     def test_ido_sysdef_invalid(self):
    54         """ Verifying get_sysdef_location method with invalid sysdef"""
    54         """ Verifying get_sysdef_location method with invalid sysdef"""
    55         (f_d, filename) = mkstemp()
    55         (f_d, filename) = mkstemp()
    56         os.write(f_d,'Test sysdef file')
    56         os.write(f_d,'Test sysdef file')
    57         os.close(f_d)
    57         os.close(f_d)
    58         location = ido.get_sysdef_location(filename); 
    58         location = ido.get_sysdef_location(filename) 
    59         os.unlink(filename)
    59         os.unlink(filename)
    60         assert location == None
    60         assert location == None