~andreserl/maas/qa-lab-tests_pause_ci

« back to all changes in this revision

Viewing changes to common.py

  • Committer: MAAS Lander
  • Author(s): Andres Rodriguez
  • Date: 2017-01-27 19:12:27 UTC
  • mfrom: (474.1.1 qa-lab-tests)
  • Revision ID: maas_lander-20170127191227-m6yvx0blwp1mv3sl
[r=mpontillo][bug=][author=andreserl] Fix test to account for new Juju backward compatibility "undefined" space.

Show diffs side-by-side

added added

removed removed

Lines of Context:
852
852
        if StrictVersion(get_maas_version()[:3]) <= StrictVersion('2.1'):
853
853
            expected = ['delete-space', 'space-0', 'test-space']
854
854
        else:
855
 
            expected = ['delete-space', 'test-space']
 
855
            expected = ['delete-space', 'test-space', 'undefined']
856
856
        self.assertItemsEqual(
857
857
            expected, [item['name'] for item in out_dict])
858
858