slpkg/tests/test_file_size.py
Dimitris Zlatanidis 055145f2bb Added tests
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
2020-02-17 17:14:24 +01:00

12 lines
344 B
Python

from slpkg.file_size import FileSize
def test_FileSize():
"""Testing the remote and local servers
"""
url = "https://mirrors.slackware.com/slackware/slackware64-14.2/ChangeLog.txt"
lc = "tests/test_units.py"
fs1 = FileSize(url)
fs2 = FileSize(lc)
assert fs1.server() is not None
assert fs2.local() is not None