summaryrefslogtreecommitdiff
path: root/src/leap/mail/adaptors/tests
diff options
context:
space:
mode:
authorBruno Wagner <bwgpro@gmail.com>2015-07-21 19:56:43 -0300
committerBruno Wagner <bwgpro@gmail.com>2015-07-21 19:56:43 -0300
commit11d4373226c8ab32c31fa92beed8aedb962dd756 (patch)
tree2352ca0eb1023935c5a64137806a625141e47e10 /src/leap/mail/adaptors/tests
parent63e643466882996f32eba1c0f79ebdd3ceb5f3b3 (diff)
Transformed assigned lambdas to functions in models and test_models because of pep8
Diffstat (limited to 'src/leap/mail/adaptors/tests')
-rw-r--r--src/leap/mail/adaptors/tests/test_models.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/leap/mail/adaptors/tests/test_models.py b/src/leap/mail/adaptors/tests/test_models.py
index efe0bf2..b82cfad 100644
--- a/src/leap/mail/adaptors/tests/test_models.py
+++ b/src/leap/mail/adaptors/tests/test_models.py
@@ -39,7 +39,8 @@ class SerializableModelsTestCase(unittest.TestCase):
class IgnoreMe(object):
pass
- killmeplease = lambda x: x
+ def killmeplease(x):
+ return x
serialized = M.serialize()
expected = {'foo': 42, 'bar': 33, 'baaz': None}
@@ -88,7 +89,9 @@ class DocumentWrapperTestCase(unittest.TestCase):
class Wrapper(models.DocumentWrapper):
class model(models.SerializableModel):
foo = 42
- getwrapper = lambda: Wrapper(bar=1)
+
+ def getwrapper():
+ return Wrapper(bar=1)
self.assertRaises(RuntimeError, getwrapper)
def test_no_model_wrapper(self):