'Receiving file upload when filename is blank (before and after
sanitization) should be okay.'

def test_blank_filenames(self):

    filenames = ['', 'C:\\Windows\\']
    payload = client.FakePayload()
    for (i, name) in enumerate(filenames):
        payload.write('\r\n'.join([('--' + client.BOUNDARY), ('Content-Disposition:    form-data;    name="file%s";    filename="%s"' % (i, name)), 'Content-Type:    application/octet-stream', '', 'You    got    pwnd.\r\n']))
    payload.write((('\r\n--' + client.BOUNDARY) + '--\r\n'))
    r = {'CONTENT_LENGTH': len(payload), 'CONTENT_TYPE': client.MULTIPART_CONTENT, 'PATH_INFO': '/echo/', 'REQUEST_METHOD': 'POST', 'wsgi.input': payload}
    response = self.client.request(**r)
    self.assertEqual(response.status_code, 200)
    received = response.json()
    for (i, name) in enumerate(filenames):
        self.assertIsNone(received.get(('file%s' % i)))
