diff options
Diffstat (limited to 'tests/test_api.py')
-rw-r--r-- | tests/test_api.py | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/tests/test_api.py b/tests/test_api.py index f8901f731..ca02f7a2c 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -1,20 +1,24 @@ +#!/usr/bin/env python # -*- coding: utf-8 -*- -from module.common import APIExerciser -from nose.tools import nottest +import nose +import APIExerciser -class TestApi: + +class TestApi(object): 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): + # takes really long, only test when needed - for i in range(0, 100): + + @nose.tools.nottest + def test_random(self): + for _i in xrange(0, 100): self.api.testAPI() |