diff options
author | Eduardo Pedroni <ep625@york.ac.uk> | 2015-06-01 12:36:28 +0200 |
---|---|---|
committer | Eduardo Pedroni <ep625@york.ac.uk> | 2015-06-01 12:36:28 +0200 |
commit | 5fd864718f4cd9e1e67835063a1efc24dd85e0c4 (patch) | |
tree | 57d3697fe16d8fd093c96818d8e42ec521dc70e5 /test_fetching.py | |
parent | c22ef08b58c14dd953eb491a9b148373167fe5c4 (diff) |
Moved some things around, separated parsing into a different module to make way for the GUI
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() |