def test_tmpconfig_2(self):
        """App must merge sucessfully all snippets from test2

        It must to add the correct autogenerated message too.
        """
        temp_file = main._create_temp_config(
            self.snippets_2, comment_prefix=";")
        try:
            self.assertTrue(filecmp.cmp(
                temp_file, join(utils.RESULTS_DIR, "test2"), shallow=False))
        finally:
            os.remove(temp_file)
 def test_tmpconfig_verbose(self):
     """App must print verbose messages about merged files
     """
     main.VERBOSE = True
     stdout_old, sys.stdout = sys.stdout, StringIO()
     try:
         temp_file = main._create_temp_config(
             self.snippets_2, comment_prefix=";")
         output = sys.stdout.getvalue()
         self.assertTrue("Merging" in output and "00-conf_0" in output)
         self.assertTrue("Merging" in output and "some_name-conf" in output)
     finally:
         sys.stdout = stdout_old
         os.remove(temp_file)