Permalink
Browse files

Merge branch 'master' of github.com:ustudio/mogo

  • Loading branch information...
2 parents df52aa5 + a1f5a4c commit ad4addab8357caeb8218d5254ca88dc4085309db Waylon Calabrese committed Nov 10, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 tests/test_model.py
View
@@ -19,8 +19,8 @@ class Foo(Model):
field = Field()
required = Field(required=True)
default = Field(default="default")
- callback = Field(get_callback=lambda x: "foo",
- set_callback=lambda x: "bar")
+ callback = Field(get_callback=lambda x, y: "foo",
+ set_callback=lambda x, y: "bar")
reference = ReferenceField(Ref)
_ignore_me = Field()
@@ -74,7 +74,8 @@ def test_model_add_field(self):
""" Tests the ability to add a field. """
class Testing(Model):
pass
- Testing.add_field("foo", Field(unicode, set_callback=lambda x: u"bar"))
+ Testing.add_field("foo", Field(unicode,
+ set_callback=lambda x, y: u"bar"))
self.assertTrue(isinstance(Testing.foo, Field))
testing = Testing(foo=u"whatever")
self.assertEqual(testing["foo"], u"bar")

0 comments on commit ad4adda

Please sign in to comment.