def test_verbose_debug(self):
        self.cleanup()
        self.start_servers()

        # The default functional test case has both verbose
        # and debug on. Let's verify that debug statements
        # appear in both the API and registry logs.

        self.assertTrue(os.path.exists(self.api_server.log_file))

        api_log_out = open(self.api_server.log_file, 'r').read()

        self.assertTrue('DEBUG [glance-api]' in api_log_out)

        self.assertTrue(os.path.exists(self.registry_server.log_file))

        registry_log_out = open(self.registry_server.log_file, 'r').read()

        self.assertTrue('DEBUG [glance-registry]' in registry_log_out)

        self.stop_servers()
Test logging output proper when verbose and debug
dataset/ETHPy150Open rcbops/glance-buildpackage/glance/tests/functional/test_logging.py/TestLogging.test_verbose_debug