Source code for tests.libs.unittest.subprocess.callit.stderr.080_DEFAULT.CallCase

"""example_DEFAULT

Case for a testee with default failure, exit 123: DEFAULT

   EXIT:
     123
   STDOUT:
     arbitrary output
   STDERR:
     -

"""
from __future__ import absolute_import
from __future__ import print_function

__author__ = 'Arno-Can Uestuensoez'
__license__ = "Artistic-License-2.0 + Forced-Fairplay-Constraints"
__copyright__ = "Copyright (C) 2010-2016 Arno-Can Uestuensoez @Ingenieurbuero Arno-Can Uestuensoez"
__version__ = '0.0.1'
__uuid__='9de52399-7752-4633-9fdc-66c87a9200b8'

__docformat__ = "restructuredtext en"

import unittest
import os
 
from filesysobjects.FileSysObjects import setUpperTreeSearchPath,findRelPathInSearchPath
import epyunit.SystemCalls
from testdata import epyu,call_scripy
 
#
#######################
#
 
[docs]class CallUnits(unittest.TestCase):
[docs] def testCase000(self): slst = [] setUpperTreeSearchPath(os.path.abspath(os.path.dirname(__file__)),'epyunit',slst) myscript = call_scripy sx = epyunit.SystemCalls.SystemCalls() # _env = os.environ.copy() # _env['PATH'] = os.pathsep.join(sys.path) ret = sx.callit(myscript+" DEFAULT") assert ret[0] == 123 assert ret[1] == ['arbitrary output'] assert ret[2] == [] pass
# ####################### # if __name__ == '__main__': unittest.main()