MCPcopy
hub / github.com/eudicots/Cactus / test_extensions

Method test_extensions

cactus/tests/test_external.py:131–143  ·  view source on GitHub ↗

Test that processors extensions are taken into account

(self)

Source from the content-addressed store, hash-verified

129 self.assertIsInstance(opti, DummyOptimizer)
130
131 def test_extensions(self):
132 """
133 Test that processors extensions are taken into account
134 """
135 self.site.external_manager.register_processor(ExtensionDummyProc)
136 self.site.build()
137
138 for static in self.site.static():
139 if static.src_filename == self.dummy_static:
140 self.assertEqual(static.final_extension, ExtensionDummyProc.output_extension)
141 break
142 else:
143 self.fail("Did not find {0}".format(self.dummy_static))
144
145 def test_discard(self):
146 """

Callers

nothing calls this directly

Calls 4

register_processorMethod · 0.80
staticMethod · 0.80
formatMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected