Пример #1
0
    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())
Пример #2
0
    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())
Пример #3
0
 def setUp(self):
     self.node = DistributionPlanNode()
Пример #4
0
 def delivery(self):
     item = self.items.first()
     return getattr(DistributionPlanNode.get_delivery_for(item), 'id', None)
Пример #5
0
 def delivery(self):
     item = self.items.first()
     return getattr(DistributionPlanNode.get_delivery_for(item), 'id', None)