Hi Abel, I decided to start from scratch!
[1]
+from lp.registry.interfaces.sourcepackage import ISourcePackage +from lp.registry.interfaces.distributionsourcepackage import (
These are out of order. Consider using utilities/format-import (or it's more convenient brother format-new-and-modified-imports).
[2]
+ search_result = self.runSearch(params) + expected = self.resultValuesForBugtasks(self.bugtasks[2:3]) + self.assertEqual(expected, search_result)
It's not worth changing it here, but a custom assertion method might have saved a few keystrokes:
def assertSearchFinds(self, params, bugtasks): search_result = self.runSearch(params) expected = self.resultValuesForBugtasks(bugtasks) self.assertEqual(expected, search_result)
[3]
+ raise AssertionError( + 'No bug task found for a product that is not the target of ' + 'the main test bugtask.')
Either raise self.failureException or call self.fail(message).
« Back to merge proposal
Hi Abel, I decided to start from scratch!
[1]
+from lp.registry. interfaces. sourcepackage import ISourcePackage interfaces. distributionsou rcepackage import (
+from lp.registry.
These are out of order. Consider using utilities/ format- import (or new-and- modified- imports) .
it's more convenient brother format-
[2]
+ search_result = self.runSearch( params) esForBugtasks( self.bugtasks[ 2:3]) l(expected, search_result)
+ expected = self.resultValu
+ self.assertEqua
It's not worth changing it here, but a custom assertion method might
have saved a few keystrokes:
def assertSearchFin ds(self, params, bugtasks):
search_ result = self.runSearch( params) esForBugtasks( bugtasks)
self.assertEqu al(expected, search_result)
expected = self.resultValu
[3]
+ raise AssertionError(
+ 'No bug task found for a product that is not the target of '
+ 'the main test bugtask.')
Either raise self.failureExc eption or call self.fail(message).