diff options
author | 2014-07-19 02:15:02 +0200 | |
---|---|---|
committer | 2014-07-19 02:15:02 +0200 | |
commit | 9e0ef7f722c606863c7388ac5c606c7859038ff2 (patch) | |
tree | e3586b502870c6c2d941da51355cbfe8ba07eca9 /module/common/test_api.py | |
parent | print "" -> print (diff) | |
download | pyload-9e0ef7f722c606863c7388ac5c606c7859038ff2.tar.xz |
Move test stuff to common directory
Diffstat (limited to 'module/common/test_api.py')
-rw-r--r-- | module/common/test_api.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/module/common/test_api.py b/module/common/test_api.py new file mode 100644 index 000000000..f8901f731 --- /dev/null +++ b/module/common/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() |