summaryrefslogtreecommitdiffstats
path: root/tests/unit/test-008-sievelib.py
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2016-05-04 15:53:48 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-05-04 15:53:48 +0200
commitc204eaaa2c9a006432fe00489a352833143db01d (patch)
tree18860f2e335b9a98d34f404d5c4b81d22f2ce222 /tests/unit/test-008-sievelib.py
parent4a24e0cc403321713ee1201ade9d36956da1c060 (diff)
downloadpykolab-c204eaaa2c9a006432fe00489a352833143db01d.tar.gz
CS fixes according to PEP8 (ignored mostly line-length errors only)
Summary: . Reviewers: #pykolab_developers Differential Revision: https://git.kolab.org/D134
Diffstat (limited to 'tests/unit/test-008-sievelib.py')
-rw-r--r--tests/unit/test-008-sievelib.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/test-008-sievelib.py b/tests/unit/test-008-sievelib.py
index cd4eb3b..9226ad6 100644
--- a/tests/unit/test-008-sievelib.py
+++ b/tests/unit/test-008-sievelib.py
@@ -38,6 +38,7 @@ if allof (header :contains "X-Mailer" "OTRS", header :contains "X-Powered-By" "O
]
+
class TestSievelib(unittest.TestCase):
def test_001_import_sievelib(self):
@@ -53,4 +54,4 @@ class TestSievelib(unittest.TestCase):
result = sieve_parser.parse(sieve_str)
if not result:
print "Sieve line: %r" % (sieve_parser.lexer.text.split('\n')[(sieve_parser.lexer.text[:sieve_parser.lexer.pos].count('\n'))])
- raise Exception, "Failed parsing Sieve script #%d: %s" % (i, sieve_parser.error)
+ raise Exception("Failed parsing Sieve script #%d: %s" % (i, sieve_parser.error))