def test_arg_generationFiles(self, mk_article_ALL_html_generator):

        with utils.environ(VALID_XML_PATH="/tmp", GENERATOR_PATH="/tmp"):
            tools_parser(["generation"])
            mk_article_ALL_html_generator.assert_called_once_with(
                "/tmp", "/tmp")
    def test_arg_constructionFiles(self, mk_article_ALL_constructor):

        with utils.environ(VALID_XML_PATH="/tmp", CONSTRUCTOR_PATH="/tmp"):
            tools_parser(["construction"])
            mk_article_ALL_constructor.assert_called_once_with(
                "/tmp", "/tmp", False)
    def test_not_arg(self):

        with self.assertRaises(SystemExit) as cm:
            tools_parser([])
            self.assertEqual("Vc deve escolher algum parametro",
                             str(cm.exception))