Adapt test for #49 again

This commit is contained in:
Oliver Falk
2019-02-28 17:53:02 +01:00
parent 66dd8f3f10
commit 92be7f9623

View File

@@ -358,7 +358,7 @@ class Tester(TestCase): # pylint: disable=too-many-public-methods
# Probably not the best way to access the content type # Probably not the best way to access the content type
self.assertEqual( self.assertEqual(
response['Content-Type'], response['Content-Type'],
'image/jpeg', 'image/jpg',
'Content type wrong!?') 'Content type wrong!?')
self.assertEqual( self.assertEqual(
@@ -640,7 +640,7 @@ class Tester(TestCase): # pylint: disable=too-many-public-methods
'Successfully uploaded', 'Successfully uploaded',
'JPEG upload failed?!') 'JPEG upload failed?!')
self.assertEqual( self.assertEqual(
self.user.photo_set.first().format, 'jpeg', self.user.photo_set.first().format, 'jpg',
'Format must be jpeg, since we uploaded a jpeg!') 'Format must be jpeg, since we uploaded a jpeg!')
self.test_confirm_email() self.test_confirm_email()
self.user.confirmedemail_set.first().photo = self.user.photo_set.first() self.user.confirmedemail_set.first().photo = self.user.photo_set.first()