Fixed test_submission -> test_evil_file test
This commit is contained in:
parent
deea3f6661
commit
0308958b2d
@ -187,9 +187,8 @@ class TestSubmission:
|
|||||||
*FORM_CONTEXT,
|
*FORM_CONTEXT,
|
||||||
**self.upload_data(EVIL_FILE))
|
**self.upload_data(EVIL_FILE))
|
||||||
assert_equal(len(form.file.errors), 1)
|
assert_equal(len(form.file.errors), 1)
|
||||||
assert_true(re.match(
|
assert 'Sorry, I don\'t support that file type :(' == \
|
||||||
r'^Could not extract any file extension from ".*?"$',
|
str(form.file.errors[0])
|
||||||
str(form.file.errors[0])))
|
|
||||||
|
|
||||||
def test_sniffing(self):
|
def test_sniffing(self):
|
||||||
'''
|
'''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user