diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-12-10 20:48:38 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-12-10 20:48:38 +0100 |
commit | c484268fbef4ef07455eb856d3924224c784d3e2 (patch) | |
tree | 9792966733612bd5ace2b9837ddc5bf24a00db07 /tests/test_api.py | |
parent | megaupload #451, uploadedto #443 (diff) | |
download | pyload-c484268fbef4ef07455eb856d3924224c784d3e2.tar.xz |
little test cases
Diffstat (limited to 'tests/test_api.py')
-rw-r--r-- | tests/test_api.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/test_api.py b/tests/test_api.py new file mode 100644 index 000000000..f8901f731 --- /dev/null +++ b/tests/test_api.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- + +from module.common import APIExerciser +from nose.tools import nottest + + +class TestApi: + + def __init__(self): + self.api = APIExerciser.APIExerciser(None, True, "TestUser", "pwhere") + + def test_login(self): + assert self.api.api.login("crapp", "wrong pw") is False + + #takes really long, only test when needed + @nottest + def test_random(self): + + for i in range(0, 100): + self.api.testAPI() |