Source code for tests.libs.unittest.subprocess.callit.stdout.020_NOK.CallCase
"""
Case for a testee with result: failure: NOK
EXIT:
0
STDOUT:
arbitrary output
arbitrary output
STDERR:
arbitrary signalling ERROR string
"""
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 setUp(self):
unittest.TestCase.setUp(self)
syskargs = {}
self.sx = epyunit.SystemCalls.SystemCalls(**syskargs)
self.epyu = epyu
self.scri = call_scripy
[docs] def testCase000(self):
myscript = call_scripy
sx = epyunit.SystemCalls.SystemCalls()
ret = sx.callit(myscript+" NOK")
assert ret[0] == 0
assert ret[1] == ["fromB", 'arbitrary output', 'arbitrary output']
assert ret[2] == ['arbitrary signalling ERROR string']
pass
#
#######################
#
if __name__ == '__main__':
unittest.main()