Updated Changelog added test for #341

This commit is contained in:
Ross Lawley 2013-06-04 10:20:24 +00:00
parent 0eafa4acd8
commit d94a191656
2 changed files with 9 additions and 0 deletions

View File

@ -5,6 +5,7 @@ Changelog
Changes in 0.8.2
================
- FileField now honouring db_alias (#341)
- Removed customised __set__ change tracking in ComplexBaseField (#344)
- Removed unused var in _get_changed_fields (#347)
- Added pre_save_post_validation signal (#345)

View File

@ -394,6 +394,14 @@ class FileTest(unittest.TestCase):
self.assertEqual(test_file.the_file.read(),
b('Hello, World!'))
test_file = TestFile.objects.first()
test_file.the_file = b('HELLO, WORLD!')
test_file.save()
test_file = TestFile.objects.first()
self.assertEqual(test_file.the_file.read(),
b('HELLO, WORLD!'))
def test_copyable(self):
class PutFile(Document):
the_file = FileField()