def test_change_image_size_when_already_small(self): input_bytes = _given_test_image(size=ImageSize.small) output_bytes = email_parser._change_image_size(input_bytes) self.assertEqual(input_bytes, output_bytes, self.error_message)
def test_change_image_size(self): input_bytes = _given_test_image(size=ImageSize.large) output_bytes = email_parser._change_image_size(input_bytes) self.assertNotEqual(input_bytes, output_bytes, self.error_message)