Lines Matching refs:_im
947 self._im = MIMEImage(self._imgdata)
950 self.assertEqual(self._im.get_content_type(), 'image/gif')
953 payload = self._im.get_payload()
963 self._im.add_header('Content-Disposition', 'attachment',
965 eq(self._im['content-disposition'],
967 eq(self._im.get_params(header='content-disposition'),
969 eq(self._im.get_param('filename', header='content-disposition'),
972 eq(self._im.get_param('attachment', header='content-disposition'), '')
973 unless(self._im.get_param('foo', failobj=missing,
976 unless(self._im.get_param('foobar', missing) is missing)
977 unless(self._im.get_param('attachment', missing,
1097 self._im = image
1114 unless(m1 is self._im)