'Test logging output proper when debug is on.'

def test_debug(self):

    self.cleanup()
    self.start_servers()
    self.assertTrue(os.path.exists(self.api_server.log_file))
    with open(self.api_server.log_file, 'r') as f:
        api_log_out = f.read()
    self.assertIn('DEBUG    glance', api_log_out)
    self.assertTrue(os.path.exists(self.registry_server.log_file))
    with open(self.registry_server.log_file, 'r') as freg:
        registry_log_out = freg.read()
    self.assertIn('DEBUG    glance', registry_log_out)
    self.stop_servers()
