'Don\'t allow uploads outside of the explicitly-permitted
mime-types.'

@override_config(WIKI_ATTACHMENT_ALLOWED_TYPES='application/x-super-weird')
def test_mime_type_filtering(self):

    _file = make_test_file(content='plain    and    text', suffix='.txt')
    post_data = {'title': 'Test    disallowed    file    type', 'description': 'A    file    kuma    should    disallow    on    type.', 'comment': 'Initial    upload', 'file': _file}
    response = self.client.post(self.files_url, data=post_data)
    self.assertEqual(response.status_code, 200)
    self.assertContains(response, 'Files    of    this    type    are    not    permitted.')
    _file.close()
