summaryrefslogtreecommitdiffstats
path: root/tests/unit/test-019-contact.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-019-contact.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-019-contact.py')
-rw-r--r--tests/unit/test-019-contact.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/test-019-contact.py b/tests/unit/test-019-contact.py
index d5366f6..6446ad9 100644
--- a/tests/unit/test-019-contact.py
+++ b/tests/unit/test-019-contact.py
@@ -280,6 +280,7 @@ Content-Disposition: attachment;
--=_4ff5155d75dc1328b7f5fe10ddce8d24--
"""
+
class TestContactXML(unittest.TestCase):
contact = Contact()
@@ -290,7 +291,7 @@ class TestContactXML(unittest.TestCase):
if (type(_value)) == _type:
return True
else:
- raise AssertionError, "%s != %s" % (type(_value), _type)
+ raise AssertionError("%s != %s" % (type(_value), _type))
def test_001_minimal(self):
self.contact.set_name("test")
@@ -346,6 +347,5 @@ class TestContactXML(unittest.TestCase):
self.assertIsInstance(data['photo'], dict)
self.assertEqual(data['photo']['mimetype'], 'image/gif')
-
if __name__ == '__main__':
- unittest.main() \ No newline at end of file
+ unittest.main()