def test_test_flatten_hierarchy_elements(self):

        # If the elements value equal like this
        elements = \
            ['utterance',
             ['clause unit',
              ['word', 'wfw', 'graid1'],
              'graid2'],
             'translation', 'comment']

        # The result expected should be
        expected_result = ['utterance',
                           'clause unit',
                           'word', 'wfw', 'graid1',
                           'graid2',
                           'translation',
                           'comment']

        assert (self.data_structure_type._flatten_hierarchy_elements(
            elements) == expected_result)
Raise an assertion if the elements aren't correct.
dataset/ETHPy150Open cidles/poio-api/src/poioapi/tests/test_data.py/TestDataStructureType.test_test_flatten_hierarchy_elements