'Test that omitting the file entirely from the POST results in HTTP 400.'

def test_upload_missing_file(self, mock_log):

    response = self.client.post(self.url, {}, format='multipart')
    self.check_response(response, 400, expected_developer_message=u'No    file    provided    for    profile    image', expected_user_message=u'No    file    provided    for    profile    image')
    self.check_images(False)
    self.check_has_profile_image(False)
    self.assertFalse(mock_log.info.called)
    self.assert_no_events_were_emitted()
