unicode literals
Browse files- tests/test_pytube.py +3 -2
tests/test_pytube.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
#!/usr/bin/env/python
|
2 |
# -*- coding: utf-8 -*-
|
|
|
3 |
|
4 |
import mock
|
5 |
from nose.tools import eq_, raises
|
@@ -28,13 +29,13 @@ class TestPytube(object):
|
|
28 |
|
29 |
def test_auto_filename(self):
|
30 |
"""Generate safe filename based on video title"""
|
31 |
-
expected =
|
32 |
|
33 |
eq_(self.yt.filename, expected)
|
34 |
|
35 |
def test_manual_filename(self):
|
36 |
"""Manually set a filename"""
|
37 |
-
expected =
|
38 |
|
39 |
self.yt.set_filename(expected)
|
40 |
eq_(self.yt.filename, expected)
|
|
|
1 |
#!/usr/bin/env/python
|
2 |
# -*- coding: utf-8 -*-
|
3 |
+
from __future__ import unicode_literals
|
4 |
|
5 |
import mock
|
6 |
from nose.tools import eq_, raises
|
|
|
29 |
|
30 |
def test_auto_filename(self):
|
31 |
"""Generate safe filename based on video title"""
|
32 |
+
expected = 'PSY - GANGNAM STYLE(\uac15\ub0a8\uc2a4\ud0c0\uc77c) MV'
|
33 |
|
34 |
eq_(self.yt.filename, expected)
|
35 |
|
36 |
def test_manual_filename(self):
|
37 |
"""Manually set a filename"""
|
38 |
+
expected = 'PSY - Gangnam Style'
|
39 |
|
40 |
self.yt.set_filename(expected)
|
41 |
eq_(self.yt.filename, expected)
|