diff options
Diffstat (limited to 'test_fetching.py')
-rwxr-xr-x | test_fetching.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test_fetching.py b/test_fetching.py new file mode 100755 index 0000000..bf17a22 --- /dev/null +++ b/test_fetching.py @@ -0,0 +1,17 @@ +#!/usr/bin/env python3 + +import unittest +import cardparser + +class Test_cardPageFetching(unittest.TestCase): + + # Tests + def test_correctUrlIsBuilt(self): + self.assertEqual(cardparser.makeUrl("set", "number"), "http://magiccards.info/set/en/number.html") + +def test(): + unittest.main(exit=False) + +# The entry point +if __name__ == "__main__": + test() |