4
#make it as if we were executing from the directory above this one (so that we can use jycompletionserver
5
#without the need for it being in the pythonpath)
6
sys.argv[0] = os.path.dirname(sys.argv[0])
7
#twice the dirname to get the previous level from this file.
8
sys.path.insert(1, os.path.join( os.path.dirname( sys.argv[0] )) )
12
class Test(unittest.TestCase):
19
sys.stdout = pydevd_io.IOBuf()
23
self.assertEquals('foo\nbar\n', sys.stdout.getvalue()) #@UndefinedVariable
27
self.assertEquals('ww\nxx\n', sys.stdout.getvalue()) #@UndefinedVariable
31
if __name__ == '__main__':