
2 changed files with 18 additions and 19 deletions
@ -1,15 +1,15 @@ |
|||
import unittest2 |
|||
import unittest |
|||
|
|||
from reportbug import checkbuildd |
|||
from nose.plugins.attrib import attr |
|||
|
|||
|
|||
class TestCheckbuildd(unittest2.TestCase): |
|||
class TestCheckbuildd(unittest.TestCase): |
|||
@attr('network') # marking the test as using network |
|||
def test_check_built(self): |
|||
built = checkbuildd.check_built('gkrellm', 60) |
|||
self.assertTrue(built) |
|||
|
|||
# timeout too small, will trigger exception and so a 'False' result |
|||
built = checkbuildd.check_built('gkrellm', 0) |
|||
# check for a non-existing package, that triggers a failure |
|||
built = checkbuildd.check_built('non-existing-pkg', 60) |
|||
self.assertFalse(built) |
|||
|
Loading…
Reference in new issue