Ejemplo n.º 1
0
    def test_build_component_list(self):
        base = {'one': 1, 'two': 2, 'three': 3, 'five': 5, 'six': None}
        custom = {'two': None, 'three': 8, 'four': 4}
        self.assertEqual(build_component_list(base, custom),
                         ['one', 'four', 'five', 'three'])

        custom = ['a', 'b', 'c']
        self.assertEqual(build_component_list(base, custom), custom)
Ejemplo n.º 2
0
    def test_build_component_list(self):
        base = {'one': 1, 'two': 2, 'three': 3, 'five': 5, 'six': None}
        custom = {'two': None, 'three': 8, 'four': 4}
        self.assertEqual(build_component_list(base, custom),
                         ['one', 'four', 'five', 'three'])

        custom = ['a', 'b', 'c']
        self.assertEqual(build_component_list(base, custom), custom)
Ejemplo n.º 3
0
 def _get_mwlist(self):
     return build_component_list(self.settings['PIPELINE_BASE'],
                                 self.settings['PIPELINE'])
Ejemplo n.º 4
0
 def _get_mwlist(self):
     return build_component_list(self.settings["EXTENSIONS_BASE"], self.settings["EXTENSIONS"])
Ejemplo n.º 5
0
 def _get_mwlist(self):
     return build_component_list(self.settings['PIPELINE_BASE'],
                                 self.settings['PIPELINE'])