~rbalint/update-manager/lp-1795898-upgrade-workaround

« back to all changes in this revision

Viewing changes to tests/test_update_origin.py

  • Committer: Balint Reczey
  • Date: 2018-09-27 14:38:14 UTC
  • mfrom: (2840.1.2 master)
  • Revision ID: balint.reczey@canonical.com-20180927143814-5fvlc75l5cze5269
MergeĀ lp:~rbalint/update-manager/fix-pep8-cosmic

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
                        if o.archive == "xenial-security":
91
91
                            had_security = True
92
92
                            break
93
 
                if (is_in_updates and
94
 
                        not is_in_security and
95
 
                        had_security and
96
 
                        len(pkg._pkg.version_list) > 2):
 
93
                if (is_in_updates \
 
94
                        and not is_in_security \
 
95
                        and had_security \
 
96
                        and len(pkg._pkg.version_list) > 2):
97
97
                    test_pkgs.add(pkg.name)
98
98
        self.assertTrue(len(test_pkgs) > 0,
99
99
                        "no suitable test package found that has a version in "