File: test_checkbuildd.py

package info (click to toggle)
reportbug 7.5.3~deb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,160 kB
  • sloc: python: 8,640; sh: 51; makefile: 44; lisp: 31
file content (15 lines) | stat: -rw-r--r-- 473 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import unittest

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


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)

        # check for a non-existing package, that triggers a failure
        built = checkbuildd.check_built('non-existing-pkg', 60)
        self.assertFalse(built)