Ejemplo n.º 1
0
    def test_compile_flow_validates_loaded_engine(self):
        compile_flow(fixture_flow_factory, **self.keyword_arguments)

        self.load_from_factory.return_value.validate.assert_called_once_with()
Ejemplo n.º 2
0
    def test_compile_flow_returns_loaded_engine(self):
        ret = compile_flow(fixture_flow_factory, **self.keyword_arguments)

        self.assertEqual(ret, self.load_from_factory.return_value)
Ejemplo n.º 3
0
    def test_compile_flow_loads_engine(self):
        compile_flow(fixture_flow_factory, **self.keyword_arguments)

        self.load_from_factory.assert_called_once_with(
            fixture_flow_factory, **self.keyword_arguments)