Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
Switching this test up a little
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Sinchok committed Apr 15, 2014
1 parent 17df2dc commit 3168782
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_image_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ def setUp(self):

def test_fileless_save(self):
test_object = TestModel()
test_object.listing_image.id = 12345
test_object.listing_image = 12345
test_object.save()

self.assertEqual(test_object.listing_image.id, 12345)

def test_save(self):
lenna_path = os.path.join(TEST_DATA_PATH, 'Lenna.png')
with open(lenna_path, "rb") as lenna:
Expand Down

0 comments on commit 3168782

Please sign in to comment.