示例#1
0
 def _setup_nginx_config_tank(self):
     from amplify.agent.tanks.nginx_config import NginxConfigTank
     self.nginx_configs = NginxConfigTank()
    def teardown_method(self, method):
        # rejuvanate context for future tests
        context.nginx_configs = None
        context.nginx_configs = NginxConfigTank()

        super(NginxConfigTankCleanTestCase, self).teardown_method(method)
    def teardown_method(self, method):
        self.nginx_configs = None
        context.nginx_configs = NginxConfigTank()

        super(NginxConfigTankTestCase, self).teardown_method(method)
    def setup_method(self, method):
        super(NginxConfigTankCleanTestCase, self).setup_method(method)

        # rejuvanate context for this test in case it was polluted before
        context.nginx_configs = None
        context.nginx_configs = NginxConfigTank()
    def setup_method(self, method):
        super(NginxConfigTankTestCase, self).setup_method(method)

        context.nginx_configs = None
        self.nginx_configs = NginxConfigTank()