'Upload nothing returns 400 error and json content.'

def test_empty_image(self):

    r = self._make_post_request(image='')
    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_('You    have    not    selected    an    image    to    upload.', json_r['errors']['image'][0])
