Fixed test_submission -> test_evil_file test
authorJoar Wandborg <git@wandborg.com>
Tue, 27 Mar 2012 14:38:41 +0000 (16:38 +0200)
committerJoar Wandborg <git@wandborg.com>
Tue, 27 Mar 2012 14:38:41 +0000 (16:38 +0200)
mediagoblin/tests/test_submission.py

index 8bf7d13c36fba0c0fca44ce0941d617b52fe2838..b9b7388eab01bbab7cff4e48aae4a5e2fb888892 100644 (file)
@@ -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):
         '''