diff options
| author | Yaguang Tang <heut2008@gmail.com> | 2012-06-30 02:13:05 +0800 |
|---|---|---|
| committer | Yaguang Tang <heut2008@gmail.com> | 2012-07-18 11:40:09 +0800 |
| commit | d5f2152dcfc4039de8324bdf75f6a2cd844dbdd0 (patch) | |
| tree | 3614b8d9bfe55bdebddc700c06ffb8fc45e76e92 /tests/unit/test_log.py | |
| parent | ace759e55d7c87dc66a500d598d1355dd3c0408f (diff) | |
| download | oslo-d5f2152dcfc4039de8324bdf75f6a2cd844dbdd0.tar.gz oslo-d5f2152dcfc4039de8324bdf75f6a2cd844dbdd0.tar.xz oslo-d5f2152dcfc4039de8324bdf75f6a2cd844dbdd0.zip | |
fix bug lp:1019348,update openstack-common to support pep8 1.3.
also,this patch turns off pep8 E125 check.
Change-Id: I22d2a94d89530586d614af39af17ae542c5e0cbf
Diffstat (limited to 'tests/unit/test_log.py')
| -rw-r--r-- | tests/unit/test_log.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit/test_log.py b/tests/unit/test_log.py index 8eaffca..83c318f 100644 --- a/tests/unit/test_log.py +++ b/tests/unit/test_log.py @@ -59,12 +59,12 @@ class LogHandlerTestCase(test_utils.BaseTestCase): def test_log_path_logdir(self): self.config(logdir='/some/path', logfile=None) self.assertEquals(log._get_log_file_path(binary='foo-bar'), - '/some/path/foo-bar.log') + '/some/path/foo-bar.log') def test_log_path_logfile(self): self.config(logfile='/some/path/foo-bar.log') self.assertEquals(log._get_log_file_path(binary='foo-bar'), - '/some/path/foo-bar.log') + '/some/path/foo-bar.log') def test_log_path_none(self): self.config(logdir=None, logfile=None) @@ -72,9 +72,9 @@ class LogHandlerTestCase(test_utils.BaseTestCase): def test_log_path_logfile_overrides_logdir(self): self.config(logdir='/some/other/path', - logfile='/some/path/foo-bar.log') + logfile='/some/path/foo-bar.log') self.assertEquals(log._get_log_file_path(binary='foo-bar'), - '/some/path/foo-bar.log') + '/some/path/foo-bar.log') class PublishErrorsHandlerTestCase(test_utils.BaseTestCase): @@ -117,7 +117,7 @@ class LoggerTestCase(test_utils.BaseTestCase): levels = CONF.default_log_levels levels.append("nova-test=AUDIT") self.config(default_log_levels=levels, - verbose=True) + verbose=True) log.setup('testing') self.log = log.getLogger('nova-test') |
