diff options
author | Philipp Hagemeister <[email protected]> | 2013-10-15 02:00:53 +0200 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2013-10-15 02:00:55 +0200 |
commit | 44a5f1718a5657a08082d8fd3201403bf2683c4f (patch) | |
tree | 97b83864087d2b6fd3696f785a764389b86d4d66 /test/test_age_restriction.py | |
parent | a623df4c7b099bc3adfe943c7155e55c6512aeff (diff) | |
download | youtube-dl-44a5f1718a5657a08082d8fd3201403bf2683c4f.tar.gz youtube-dl-44a5f1718a5657a08082d8fd3201403bf2683c4f.zip |
Simplify tests
* Make them directly executable again
* Move common stuff (md5, parameters) to helper
* Never import *
* General clean up
Diffstat (limited to 'test/test_age_restriction.py')
-rw-r--r-- | test/test_age_restriction.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/test_age_restriction.py b/test/test_age_restriction.py index ec3e30572..d500c6edc 100644 --- a/test/test_age_restriction.py +++ b/test/test_age_restriction.py @@ -1,14 +1,16 @@ #!/usr/bin/env python +# Allow direct execution +import os import sys import unittest +sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) + +from test.helper import global_setup, try_rm +global_setup() -# Allow direct execution -import os -sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from youtube_dl import YoutubeDL -from .helper import try_rm def _download_restricted(url, filename, age): |