diff options
author | Nigel Babu <nigelb@redhat.com> | 2018-03-05 15:49:23 +0530 |
---|---|---|
committer | Nigel Babu <nigelb@redhat.com> | 2018-03-27 16:05:15 +0530 |
commit | fb5145be2db1a7c96b008af8a40e3b7b18df9673 (patch) | |
tree | 3ca087e0996bfd975e97b4f0235421a37d2e4767 /tests/functional/quota | |
parent | 8804c9499e9ed0d37823dc55d03eb7792907cf0b (diff) |
Fix up coding style issues in tests
Change-Id: I14609030983d4485dbce5a4ffed1e0353e3d1bc7
Diffstat (limited to 'tests/functional/quota')
-rw-r--r-- | tests/functional/quota/__init__.py | 0 | ||||
-rw-r--r-- | tests/functional/quota/test_non_existent_dir.py | 8 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/functional/quota/__init__.py b/tests/functional/quota/__init__.py new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/functional/quota/__init__.py diff --git a/tests/functional/quota/test_non_existent_dir.py b/tests/functional/quota/test_non_existent_dir.py index 973e6b96e..666e75279 100644 --- a/tests/functional/quota/test_non_existent_dir.py +++ b/tests/functional/quota/test_non_existent_dir.py @@ -29,7 +29,7 @@ class QuotaNonExistentDir(GlusterBaseClass): @classmethod def setUpClass(cls): GlusterBaseClass.setUpClass.im_func(cls) - g.log.info("Starting %s " % cls.__name__) + g.log.info("Starting %s ", cls.__name__) def setUp(self): # SettingUp volume and Mounting the volume @@ -42,7 +42,7 @@ class QuotaNonExistentDir(GlusterBaseClass): if not ret: raise ExecutionError("Failed to setup and mount volume %s" % self.volname) - g.log.info("Volume %s has been setup successfully" % self.volname) + g.log.info("Volume %s has been setup successfully", self.volname) def test_non_existent_dir(self): # Displaying volume status and info @@ -64,8 +64,8 @@ class QuotaNonExistentDir(GlusterBaseClass): # Set Quota limit on the root of the volume g.log.info("Set Quota Limit on the path %s of the volume %s", path, self.volname) - ret, out, err = set_quota_limit_usage(self.mnode, self.volname, - path=path, limit="1GB") + ret, _, err = set_quota_limit_usage(self.mnode, self.volname, + path=path, limit="1GB") self.assertIn("No such file or directory", err, "Quota limit set " "on path /foo which does not exist") |