Package moap :: Package test :: Module test_bug_bugzilla
[hide private]
[frames] | no frames]

Source Code for Module moap.test.test_bug_bugzilla

 1  # -*- Mode: Python; test-case-name: moap.test.test_bug_bugzilla -*- 
 2  # vi:si:et:sw=4:sts=4:ts=4 
 3   
 4  import os 
 5   
 6  from moap.bug import bugzilla 
 7   
 8  from moap.test import common 
 9   
10 -class TestGstCsv(common.TestCase):
11 - def setUp(self):
12 file = os.path.join(os.path.dirname(__file__), 'bugzilla', 13 'gst-plugins-base-0.10.2.csv') 14 self.handle = open(file) 15 self.bugzilla = bugzilla.Bugzilla(None)
16
17 - def testQuery(self):
18 l = self.bugzilla.query(None, handle=self.handle) 19 for b in l: 20 if b.id == '324696': 21 return 22 self.fail('Did not find bug 324696')
23
24 -class TestRDFGst:#(common.TestCase):
25 try: 26 import RDF 27 except ImportError: 28 skip = "No rdf module, skipping"
29 - def setUp(self):
30 file = os.path.join(os.path.dirname(__file__), 'bugzilla', 31 'gst-plugins-base-0.10.rdf') 32 #file = os.path.join(os.path.dirname(__file__), 'doap', 33 # 'mach.doap') 34 self.rdf = bugzilla.BugzillaRDF() 35 self.rdf.addLocation('file:' + file)
36
37 - def testById(self):
38 self.rdf.getById(324696)
39 40 try: 41 import RDF 42 except ImportError: 43 TestGstCsv.skip = "No rdf module, skipping" 44