summaryrefslogtreecommitdiff
path: root/tests/unittests/test_handler/test_handler_timezone.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2016-05-12 14:25:32 -0700
committerJoshua Harlow <harlowja@gmail.com>2016-05-12 14:25:32 -0700
commit78cbc764486060928541b9dee6ce5779e622d1fa (patch)
tree48a886ea0a9857ce353eebe504048e656e1c6e92 /tests/unittests/test_handler/test_handler_timezone.py
parent690bdce9a73ec6d00b4eebbbca31cc527e7b2fce (diff)
parent811f7b5b3c4590ee4a16662db37b1f37541d9822 (diff)
downloadvyos-cloud-init-78cbc764486060928541b9dee6ce5779e622d1fa.tar.gz
vyos-cloud-init-78cbc764486060928541b9dee6ce5779e622d1fa.zip
Enable flake8 and fix a large amount of reported issues
Diffstat (limited to 'tests/unittests/test_handler/test_handler_timezone.py')
-rw-r--r--tests/unittests/test_handler/test_handler_timezone.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/unittests/test_handler/test_handler_timezone.py b/tests/unittests/test_handler/test_handler_timezone.py
index e3df8759..b7e6b03d 100644
--- a/tests/unittests/test_handler/test_handler_timezone.py
+++ b/tests/unittests/test_handler/test_handler_timezone.py
@@ -28,12 +28,10 @@ from cloudinit.sources import DataSourceNoCloud
from .. import helpers as t_help
from configobj import ConfigObj
-
-from six import BytesIO
-
+import logging
import shutil
+from six import BytesIO
import tempfile
-import logging
LOG = logging.getLogger(__name__)
@@ -72,7 +70,7 @@ class TestTimezone(t_help.FilesystemMockingTestCase):
contents = util.load_file('/etc/sysconfig/clock', decode=False)
n_cfg = ConfigObj(BytesIO(contents))
- self.assertEquals({'TIMEZONE': cfg['timezone']}, dict(n_cfg))
+ self.assertEqual({'TIMEZONE': cfg['timezone']}, dict(n_cfg))
contents = util.load_file('/etc/localtime')
- self.assertEquals(dummy_contents, contents.strip())
+ self.assertEqual(dummy_contents, contents.strip())