Exemplo n.º 1
0
 def test_current_draining_false_if_description_not_draining(self):
     """
     :func:`CLBNode.currently_draining` returns `False` if
     `CLBNode.description.condition` is not :obj:`CLBNodeCondition.DRAINING`
     """
     node = CLBNode(node_id="1234", description=self.desc, address="10.1.1.1")
     self.assertFalse(node.currently_draining())
Exemplo n.º 2
0
 def test_current_draining_false_if_description_not_draining(self):
     """
     :func:`CLBNode.currently_draining` returns `False` if
     `CLBNode.description.condition` is not :obj:`CLBNodeCondition.DRAINING`
     """
     node = CLBNode(node_id='1234', description=self.desc, address='10.1.1.1')
     self.assertFalse(node.currently_draining())
Exemplo n.º 3
0
 def test_current_draining_true_if_description_is_draining(self):
     """
     :func:`CLBNode.currently_draining` returns `True` if
     `CLBNode.description.condition` is :obj:`CLBNodeCondition.DRAINING`
     """
     node = CLBNode(node_id="1234", description=self.drain_desc, address="10.1.1.1")
     self.assertTrue(node.currently_draining())
Exemplo n.º 4
0
 def test_current_draining_true_if_description_is_draining(self):
     """
     :func:`CLBNode.currently_draining` returns `True` if
     `CLBNode.description.condition` is :obj:`CLBNodeCondition.DRAINING`
     """
     node = CLBNode(node_id='1234', description=self.drain_desc,
                    address='10.1.1.1')
     self.assertTrue(node.currently_draining())