aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_submission.py
diff options
context:
space:
mode:
authorBrett Smith <brettcsmith@brettcsmith.org>2012-07-08 10:18:33 -0400
committerBrett Smith <brettcsmith@brettcsmith.org>2012-07-08 10:18:33 -0400
commited3ff88eedc913a8eda882ffc849be38af6b1926 (patch)
tree3b8c20f9a95d247bb005c4e5f915531c1a5648a0 /mediagoblin/tests/test_submission.py
parent7a258b1408ba1e7e7ec39549057bd450face8d85 (diff)
downloadmediagoblin-ed3ff88eedc913a8eda882ffc849be38af6b1926.tar.lz
mediagoblin-ed3ff88eedc913a8eda882ffc849be38af6b1926.tar.xz
mediagoblin-ed3ff88eedc913a8eda882ffc849be38af6b1926.zip
More Unicode titles to prevent non-Unicode SQLAlchemy warnings.
Diffstat (limited to 'mediagoblin/tests/test_submission.py')
-rw-r--r--mediagoblin/tests/test_submission.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/mediagoblin/tests/test_submission.py b/mediagoblin/tests/test_submission.py
index 3cc5280c..b7b0e574 100644
--- a/mediagoblin/tests/test_submission.py
+++ b/mediagoblin/tests/test_submission.py
@@ -14,6 +14,10 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+import sys
+reload(sys)
+sys.setdefaultencoding('utf-8')
+
import urlparse
import os
@@ -229,12 +233,12 @@ class TestSubmission:
def test_evil_jpg(self):
# Test non-supported file with .jpg extension
# -------------------------------------------
- self.check_false_image('Malicious Upload 2', EVIL_JPG)
+ self.check_false_image(u'Malicious Upload 2', EVIL_JPG)
def test_evil_png(self):
# Test non-supported file with .png extension
# -------------------------------------------
- self.check_false_image('Malicious Upload 3', EVIL_PNG)
+ self.check_false_image(u'Malicious Upload 3', EVIL_PNG)
def test_processing(self):
data = {'title': u'Big Blue'}