Пример #1
0
    def test_should_know_question_given_label(self):
        label = 'someLabel'
        flow = FlowFactory()
        question = NumericQuestionFactory(label=label, flow=flow)

        self.assertEqual(flow.question_with(label=label), question)
Пример #2
0
    def test_should_know_question_given_label(self):
        label = 'someLabel'
        flow = FlowFactory()
        question = NumericQuestionFactory(label=label, flow=flow)

        self.assertEqual(flow.question_with(label=label), question)
Пример #3
0
    def test_should_know_question_given_uuid(self):
        uuid = ["some uuid"]
        flow = FlowFactory()
        question = NumericQuestionFactory(uuids=uuid, flow=flow)

        self.assertEqual(flow.question_with(uuid=uuid), question)