Esempio n. 1
0
    def test_get_value(self):
        column = UserDefinedExportColumn(custom_path=[
            PathNode(name='form'),
            PathNode(name='question1'),
        ])

        result = column.get_value('my-domain', '1234', {'question1': '1234'},
                                  [PathNode(name='form')])
        self.assertEqual(
            result,
            '1234',
        )
Esempio n. 2
0
    def test_get_value(self):
        column = UserDefinedExportColumn(
            custom_path=[
                PathNode(name='form'),
                PathNode(name='question1'),
            ]
        )

        result = column.get_value(
            'my-domain',
            '1234',
            {'question1': '1234'},
            [PathNode(name='form')]
        )
        self.assertEqual(
            result,
            '1234',
        )
Esempio n. 3
0
    def test_get_value(self):
        column = UserDefinedExportColumn(custom_path=[PathNode(name="form"), PathNode(name="question1")])

        result = column.get_value("my-domain", "1234", {"question1": "1234"}, [PathNode(name="form")])
        self.assertEqual(result, "1234")