Skip to content

Commit

Permalink
fix form tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjmcgrath committed Aug 23, 2015
1 parent 8e35981 commit b84396b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/tests/test_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,12 @@ def testFilmFieldPopulate(self):
self.assertEqual(obj.foo_year, 'bar')
self.assertEqual(obj.foo_title, 'baz')

# def testImageFieldPopulate(self):
# field = forms.ImageField().bind(Form(), 'a')
# self.req.GET['foo'] = 'bar'
# obj = mock.MagicMock()
# field.populate_obj(obj, 'baz')
# self.assertIsNotNone(obj.baz)
def testImageFieldPopulate(self):
field = forms.ImageField('foo', 'bar').bind(Form(), 'a')
self.req.GET['foo'] = 'bar'
obj = mock.MagicMock()
field.populate_obj(obj, 'baz')
self.assertIsNotNone(obj.baz)

def testClueFieldListProcessNoClues(self):
field_list = forms.CluesFieldList(FormField()).bind(Form(), 'a')
Expand Down

0 comments on commit b84396b

Please sign in to comment.