def test_stop_init(self):
     class_file = sys.modules[self.__module__].__file__
     path = os.path.dirname(os.path.abspath(class_file))
     os.chdir(path)
     interface = AbstractSpinnakerBase(base.CONFIG_FILE, ExecutableFinder())
     mock_contoller = Close_Once()
     interface._machine_allocation_controller = mock_contoller
     self.assertFalse(mock_contoller.closed)
     interface.stop(turn_off_machine=False, clear_routing_tables=False,
                    clear_tags=False)
     self.assertTrue(mock_contoller.closed)
     interface.stop(turn_off_machine=False, clear_routing_tables=False,
                    clear_tags=False)
 def test_min_init(self):
     class_file = sys.modules[self.__module__].__file__
     path = os.path.dirname(os.path.abspath(class_file))
     os.chdir(path)
     print(path)
     AbstractSpinnakerBase(CONFIG_FILE, ExecutableFinder())