From 0308958b2d441ef447cdd36eeb3bb4fb5df0a764 Mon Sep 17 00:00:00 2001 From: Joar Wandborg Date: Tue, 27 Mar 2012 16:38:41 +0200 Subject: [PATCH] Fixed test_submission -> test_evil_file test --- mediagoblin/tests/test_submission.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mediagoblin/tests/test_submission.py b/mediagoblin/tests/test_submission.py index 8bf7d13c..b9b7388e 100644 --- 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): ''' -- 2.25.1