~cjwatson/launchpadlib/isolate-doctests

« back to all changes in this revision

Viewing changes to src/launchpadlib/testing/tests/test_launchpad.py

  • Committer: Colin Watson
  • Date: 2015-07-07 14:09:11 UTC
  • Revision ID: cjwatson@canonical.com-20150707140911-f695i50wn57tk5ei
Fix various pyflakes errors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
239
239
        """
240
240
        bug = dict(id="1", title="Bug #1")
241
241
        self.launchpad.bugs = dict(entries=[bug])
242
 
        bugs = [bug for bug in  self.launchpad.bugs]
 
242
        bugs = list(self.launchpad.bugs)
243
243
        self.assertEqual(1, len(bugs))
244
244
        bug = bugs[0]
245
245
        self.assertEqual("1", bug.id)