slpkg/tests/test_file_size.py

20 lines
489 B
Python
Raw Normal View History

import unittest
2020-02-14 13:35:27 +01:00
from slpkg.file_size import FileSize
class TestFileSize(unittest.TestCase):
def test_FileSize(self):
"""Testing the remote and local servers
"""
url = "https://mirrors.slackware.com/slackware/slackware64-14.2/ChangeLog.txt"
lc = "test_units.py"
fs1 = FileSize(url)
fs2 = FileSize(lc)
self.assertIsNotNone(fs1.server())
self.assertIsNotNone(fs2.local())
if __name__ == "__main__":
unittest.main()