def setUp(self): patcher = mock.patch('ubiquity.nm.NetworkManager.start') patcher.start() self.addCleanup(patcher.stop) self.model = nmwidgets.GtkNetworkStore() self.manager = nm.NetworkManager(self.model, nmwidgets.GLibQueuedCaller)
def setUp(self): self.model = nmwidgets.GtkNetworkStore()