def setup(self):
        unittest = getattr(self, 'unittest', False)
        integrationtest = getattr(self, 'integrationtest', False)
        systemtest = getattr(self, 'systemtest', False)
        if integrationtest or systemtest:
            if not testenv.username or not testenv.password:
                raise SkipTest('This test requires API credentials.')
        testenv._tempdirs = []
        testenv.tempdir = tempdir()
        testenv._saved_stderr = sys.stderr 
        sys.stderr = sys.stdout  # Have nose capture stderr too
        testenv.context = env.new()
        testenv.context.__enter__()
        if integrationtest:
            args = argparse.Namespace(
                        user = testenv.username,
                        password = testenv.password,
                        service_url = testenv.service_url,
                        manifest = None,
                        quiet = False, verbose=True,
                        debug = True, yes = False)
            create_environment(args)
            env.api._login()
dataset/ETHPy150Open ravello/testmill/lib/testmill/test/__init__.py/TestSuite.setup/original