Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(45)  |  Call(45)  |  Derive(0)  |  Import(0)

src/p/y/python-bugzilla-1.0.0/tests/rw_functional.py   python-bugzilla(Download)
        summary = ("python-bugzilla test basic bug %s" %
                   datetime.datetime.today())
        newout = tests.clicomm("bugzilla new "
            "--product Fedora --component %s --version %s "
            "--summary \"%s\" "
 
        # Close the bug
        tests.clicomm("bugzilla modify --close NOTABUG %s" % bugid,
                      bz)
        bug.refresh()
        comment = "Test bug from python-bugzilla test suite"
        sub_component = "Command-line tools (RHEL6)"
        newout = tests.clicomm("bugzilla new "
            "--product 'Red Hat Enterprise Linux 6' --version 6.0 "
            "--component lvm2 --sub-component '%s' "
 
        # Close the bug
        tests.clicomm("bugzilla modify --close WONTFIX %s" % bugid,
                      bz)
        bug.refresh()
        # We want to start with an open bug, so fix things
        if bug.status == "CLOSED":
            tests.clicomm(cmd + "--status ASSIGNED", bz)
            bug.refresh()
            self.assertEquals(bug.status, "ASSIGNED")

src/p/y/python-bugzilla-1.0.0/tests/query.py   python-bugzilla(Download)
            self.assertRaises(RuntimeError, tests.clicomm, comm, self.bz)
        else:
            q = tests.clicomm(comm, self.bz, returnmain=True)
            self.assertDictEqual(out, q)
 

src/p/y/python-bugzilla-1.0.0/tests/modify.py   python-bugzilla(Download)
            self.assertRaises(RuntimeError, tests.clicomm, comm, self.bz)
        else:
            (mdict, fdict, wdict) = tests.clicomm(comm, self.bz,
                                                  returnmain=True)
 

src/p/y/python-bugzilla-1.0.0/tests/createbug.py   python-bugzilla(Download)
            self.assertRaises(RuntimeError, tests.clicomm, comm, self.bz)
        else:
            q = tests.clicomm(comm, self.bz, returnmain=True)
            self.assertDictEqual(out, q)
 

src/p/y/python-bugzilla-1.0.0/tests/misc.py   python-bugzilla(Download)
            return
 
        out = tests.clicomm("bugzilla --generate-man", None)
        self.assertTrue(len(out.splitlines()) > 100)
 
    def testHelp(self):
        out = tests.clicomm("bugzilla --help", None)
    def testCmdHelp(self):
        out = tests.clicomm("bugzilla query --help", None)
        self.assertTrue(len(out.splitlines()) > 40)
 
    def testVersion(self):
        out = tests.clicomm("bugzilla --version", None)

src/p/y/python-bugzilla-1.0.0/tests/ro_functional.py   python-bugzilla(Download)
            self.assertRaises(Exception, tests.clicomm, comm, bz)
        else:
            return tests.clicomm(comm, bz)
 
    def _testBZClass(self):