[dd6877]: / tests / test_download.py

Download this file

16 lines (11 with data), 403 Bytes

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