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

def test_invalid_image(self):

    with open('kitsune/upload/__init__.py', '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_('The    submitted    file    is    empty.', json_r['errors']['image'][0])
