def tearDown(self):
        # restore the trusted CA dir
        from django.conf import settings as djangosettings
        import os
        after = os.listdir(djangosettings.XMLRPC_TRUSTED_CA_PATH)
        for path in after:
            if path not in self.before:
                os.unlink(os.path.join(djangosettings.XMLRPC_TRUSTED_CA_PATH, path))

        if test_settings.PAUSE_AFTER_TESTS:
            raw_input("Press ENTER to continue:")
            
        # clear all slices/flowspaces from fvs
        if RUN_FV_SUBPROCESS:
            for fv_proc in self.fv_procs:
                try:
                    fv_proc.terminate()
                except:
                    pass
        
        self.am_proc.terminate()
        self.ch_proc.terminate()
        
        # kill ssh sessions
#        for c in self.nox_clients:
#            out = c.communicate("\03", check_closed=True)
#            logger.debug("nox stdout %s" % out)
            
        for c in self.mininet_vm_clients:
            out = c.communicate("exit()\n", check_closed=True)
            logger.debug("mn stdout %s" % out)
            c.wait()
        
        if RUN_FV_SUBPROCESS:
            for flowvisor in test_settings.FLOWVISORS:
                kill_old_procs(flowvisor["of_port"], flowvisor["xmlrpc_port"])
        
        # Kill stale processes
        kill_old_procs(test_settings.GAM_PORT, test_settings.GCH_PORT)

#        for c in self.nox_clients:
#            try:
#                c.close()
#            except:
#                pass

        for c in self.fv_procs:
            try:
                c.close()
            except:
                pass

            
        for c in self.mininet_vm_clients:
            try:
                c.close()
            except:
                pass
Tests that a block of code raises an exception of type exceptionType
dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/plugins/openflow/tests/full/fulltests.py/FullIntegration.tearDown--crossover with--dataset/ETHPy150Open ga4gh/server/tests/datadriven/__init__.py/TestCase.assertRaisesWith