File: test_checkbuildd.py

package info (click to toggle)
reportbug 6.4.4%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,020 kB
  • sloc: python: 8,367; makefile: 73; sh: 48; lisp: 31
file content (15 lines) | stat: -rw-r--r-- 471 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import unittest2

from reportbug import checkbuildd
from nose.plugins.attrib import attr

class TestCheckbuildd(unittest2.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)
        self.assertFalse(built)