Test more fields in launchpad tests.
authorJelmer Vernooij <jelmer@samba.org>
Fri, 20 Jun 2008 14:53:39 +0000 (16:53 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Fri, 20 Jun 2008 14:53:39 +0000 (16:53 +0200)
remote/launchpad.py
remote/tests/test_launchpad.py

index 0e379171820e5ebcec7043b1c391228c3255612c..d008e1b43e7c1af44e20a6fe053044f02bdd4e08 100644 (file)
@@ -52,10 +52,7 @@ class LaunchpadBug:
         self.id = int(bug["bug"])
         self.tasks = {}
         self.title = bug["title"]
-        self.repoter = bug["reporter"]
-
-        import pdb
-        pdb.set_trace()
+        self.reporter = bug["reporter"]
 
         # Find the task related to the product we're dealing 
         # with at the moment
index fee09c278ff32b987b155e5ff196773b2b7b7b5f..65cd531749518b3f07f0ce810756018099cef137 100644 (file)
@@ -39,11 +39,17 @@ class TestLaunchpadBug(TestCase):
 
     def test_id(self):
         bug = self.parse("""bug: 42
+reporter: Somebody
+title: The bar is broken
 """)
         self.assertEquals(42, bug.id)
+        self.assertEquals("Somebody", bug.reporter)
+        self.assertEquals("The bar is broken", bug.title)
 
     def test_dupe(self):
         bug = self.parse("""bug: 42
+reporter: Somebody
+title: The bar is broken
 duplicate-of: 43
 """)
         self.assertEquals(43, bug.duplicate_of)