test_checkbuildd.py 473 B

12345678910111213141516
  1. import unittest2
  2. from reportbug import checkbuildd
  3. from nose.plugins.attrib import attr
  4. class TestCheckbuildd(unittest2.TestCase):
  5. @attr('network') # marking the test as using network
  6. def test_check_built(self):
  7. built = checkbuildd.check_built('gkrellm', 60)
  8. self.assertTrue(built)
  9. # timeout too small, will trigger exception and so a 'False' result
  10. built = checkbuildd.check_built('gkrellm', 0)
  11. self.assertFalse(built)