From 5fd864718f4cd9e1e67835063a1efc24dd85e0c4 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Mon, 1 Jun 2015 12:36:28 +0200 Subject: Moved some things around, separated parsing into a different module to make way for the GUI --- test_fetching.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 test_fetching.py (limited to 'test_fetching.py') 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() -- cgit v1.2.3