def test_switched_off(self, *args): builder = MockBuilder() builder.objects['connect-switch'] = MockSwitch(state=False) switched(builder=self.builder, meta=self.meta, verifier=self.verifier, lets_connect=False)
def test_switched_on(self, *args): builder = MockBuilder() builder.objects['connect-switch'] = MockSwitch(state=True) switched(builder=self.builder, meta=self.meta)
def switched(self, selection, _): """called when the user releases the connection switch""" switched(meta=self.selected_meta, builder=self.builder, verifier=self.verifier, lets_connect=self.lets_connect)
def switched(self, selection, _): """called when the user releases the connection switch""" switched(meta=self.selected_meta, builder=self.builder)