a | b/tests/test_download.py | ||
---|---|---|---|
1 | import os |
||
2 | from unittest import TestCase |
||
3 | |||
4 | from mediaug.download import get_data_cache, download_sipakmed |
||
5 | |||
6 | |||
7 | class TestDownload(TestCase): |
||
8 | def test_get_data_cache(self): |
||
9 | get_data_cache() |
||
10 | self.assertTrue(True) |
||
11 | |||
12 | def test_download_sipakmed(self): |
||
13 | download_sipakmed() |
||
14 | cache = get_data_cache() |
||
15 | self.assertTrue(os.path.exists(os.path.join(cache, 'sipakmed_raw'))) |