'Make sure invalid extensions are not accepted as images.'

def test_invalid_image_extensions(self):

    with open('kitsune/upload/tests/media/test_invalid.ext', 'rb') as f:
        r = self._make_post_request(image=f)
    eq_(400, r.status_code)
    json_r = json.loads(r.content)
    eq_('error', json_r['status'])
    eq_('Invalid    or    no    image    received.', json_r['message'])
    eq_('Please    upload    an    image    with    one    of    the    following    extensions:    jpg,    jpeg,    png,    gif.', json_r['errors']['__all__'][0])
