<filename>tests/test_simple_downloader.py
import unittest
from minecraft_dynmap_timemachine import simple_downloader

# from urllib.error import HTTPError

class TestSimpleDownloader(unittest.TestCase):

    def test_download(self):
        self.assertGreater(len(simple_downloader.download('http://map.majncraft.cz/tiles/world/t/-1_-1/-3_-2.png', binary=True)), 1000)
        self.assertRaises(Exception, simple_downloader.download, 'http://map.majncraft.cz/tiles/world/t/-19_-3/-591_-73.png', binary=True)

        self.assertIn('seznam.cz', simple_downloader.download('http://www.seznam.cz'))

<filename>tests/test_simple_downloader.py
import unittest
from minecraft_dynmap_timemachine import simple_downloader

# from urllib.error import HTTPError

class TestSimpleDownloader(unittest.TestCase):

    def test_download(self):
        self.assertGreater(len(simple_downloader.download('http://map.majncraft.cz/tiles/world/t/-1_-1/-3_-2.png', binary=True)), 1000)
        self.assertRaises(Exception, simple_downloader.download, 'http://map.majncraft.cz/tiles/world/t/-19_-3/-591_-73.png', binary=True)

        self.assertIn('seznam.cz', simple_downloader.download('http://www.seznam.cz'))

# from urllib.error import HTTPError