def test_node_end_user(self): node = DeliveryNode(tree_position=Flow.Label.END_USER) self.assertTrue(node.is_end_user()) node.tree_position = Flow.Label.MIDDLE_MAN self.assertFalse(node.is_end_user())
def setUp(self): self.node = DistributionPlanNode()
def delivery(self): item = self.items.first() return getattr(DistributionPlanNode.get_delivery_for(item), 'id', None)