Skip to content

Commit

Permalink
Add test for 4c65918
Browse files Browse the repository at this point in the history
  • Loading branch information
bmihelac committed Dec 18, 2015
1 parent 2502966 commit 8193847
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/core/tests/fields_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,7 @@ def test_following_attribute(self):
obj2 = Obj(name="bar")
self.obj.other_obj = obj2
self.assertEqual(field.export(self.obj), "bar")

def test_default(self):
field = fields.Field(default=1, column_name='name')
self.assertEqual(field.clean({'name': None}), 1)

0 comments on commit 8193847

Please sign in to comment.