Source code for UseCases.PySourceInfo.getCallerLinenumber.CallCase
"""Check defaults.
"""
from __future__ import absolute_import
import unittest
import os
import pysourceinfo.PySourceInfo
#
#######################
#
[docs]class CallUnits(unittest.TestCase):
[docs] def testCase002(self):
import sys
_s=sys.path[:]
sys.path.insert(0,os.path.abspath(os.path.dirname(__file__)+os.sep+'..'))
import PySourceInfo_check #@UnresolvedImport
fx = PySourceInfo_check.check_callback(pysourceinfo.PySourceInfo.getCallerLinenumber,2)
[ sys.path.pop() for x in range(len(sys.path)) ] #@UnusedVariable
sys.path.extend(_s)
assert fx == 22
if __name__ == '__main__':
unittest.main()