projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
deea3f6
)
Fixed test_submission -> test_evil_file test
author
Joar Wandborg
<git@wandborg.com>
Tue, 27 Mar 2012 14:38:41 +0000
(16:38 +0200)
committer
Joar Wandborg
<git@wandborg.com>
Tue, 27 Mar 2012 14:38:41 +0000
(16:38 +0200)
mediagoblin/tests/test_submission.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/tests/test_submission.py
b/mediagoblin/tests/test_submission.py
index 8bf7d13c36fba0c0fca44ce0941d617b52fe2838..b9b7388eab01bbab7cff4e48aae4a5e2fb888892 100644
(file)
--- a/
mediagoblin/tests/test_submission.py
+++ b/
mediagoblin/tests/test_submission.py
@@
-187,9
+187,8
@@
class TestSubmission:
*FORM_CONTEXT,
**self.upload_data(EVIL_FILE))
assert_equal(len(form.file.errors), 1)
- assert_true(re.match(
- r'^Could not extract any file extension from ".*?"$',
- str(form.file.errors[0])))
+ assert 'Sorry, I don\'t support that file type :(' == \
+ str(form.file.errors[0])
def test_sniffing(self):
'''