From b8ded4cdcdf963bfd0b4c05700f6ba55b0f5b6c0 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Wed, 12 Aug 2015 18:16:33 -0700 Subject: [PATCH] Add python tests --- client/python/test.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 client/python/test.py diff --git a/client/python/test.py b/client/python/test.py new file mode 100644 index 0000000..4aa128b --- /dev/null +++ b/client/python/test.py @@ -0,0 +1,27 @@ +import ponyapi +import unittest + +class TestPonyAPI(unittest.TestCase): + def test_newest(self): + ponyapi.newest() + + def test_all_episodes(self): + assert len(ponyapi.all_episodes()) > 0 + + def test_last_aired(self): + ponyapi.last_aired() + + def test_random(self): + ponyapi.random() + + def test_get_season(self): + assert len(ponyapi.get_season(4)) > 0 + + def test_get_episode(self): + ponyapi.get_episode(2, 14) + + def test_searcn(self): + assert len(ponyapi.search("pony")) > 0 + +if __name__ == '__main__': + unittest.main()