示例#1
0
    def setUp(self):
        self.elb = MagicMock(spec=ELBConnection)
        self._in_service()

        self.lb = LoadBalancer(INSTANCE_ID,
                               ELB_NAME,
                               self.elb,
                               backoff=0.00001)
示例#2
0
 def test_unregister_noop(self):
     self.lb = LoadBalancer(INSTANCE_ID, ELB_NAME, None)
     registered = self.lb.unregister()
     self.assertTrue(registered)