def setUp(self): self.elb = MagicMock(spec=ELBConnection) self._in_service() self.lb = LoadBalancer(INSTANCE_ID, ELB_NAME, self.elb, backoff=0.00001)
def test_unregister_noop(self): self.lb = LoadBalancer(INSTANCE_ID, ELB_NAME, None) registered = self.lb.unregister() self.assertTrue(registered)