neitro
commited on
Commit
·
f9962fa
1
Parent(s):
fd8f82d
Fixed the bug - updated tests ( https://github.com/nficano/pytube/issues/450 )
Browse files- tests/test_streams.py +6 -0
tests/test_streams.py
CHANGED
@@ -19,6 +19,12 @@ def test_default_filename(cipher_signature):
|
|
19 |
assert stream.default_filename == expected
|
20 |
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
def test_download(cipher_signature, mocker):
|
23 |
mocker.patch.object(request, 'get')
|
24 |
request.get.side_effect = [
|
|
|
19 |
assert stream.default_filename == expected
|
20 |
|
21 |
|
22 |
+
def test_title(cipher_signature):
|
23 |
+
expected = 'PSY - GANGNAM STYLE(강남스타일) MV'
|
24 |
+
stream = cipher_signature.streams.first()
|
25 |
+
assert stream.title == expected
|
26 |
+
|
27 |
+
|
28 |
def test_download(cipher_signature, mocker):
|
29 |
mocker.patch.object(request, 'get')
|
30 |
request.get.side_effect = [
|