~oddbloke/cloud-init/fix-gce-az

« back to all changes in this revision

Viewing changes to tests/unittests/test_datasource/test_gce.py

  • Committer: Daniel Watkins
  • Date: 2015-07-06 14:33:33 UTC
  • mto: This revision was merged to the branch mainline in revision 1121.
  • Revision ID: daniel.watkins@canonical.com-20150706143333-21g6bnmu62b65jcn
Return a sensible value for DataSourceGCE.availability_zone.

Show diffs side-by-side

added added

removed removed

Lines of Context:
159
159
        self.ds.get_data()
160
160
 
161
161
        self.assertEqual([key_content], self.ds.get_public_ssh_keys())
 
162
 
 
163
    def test_only_last_part_of_zone_used_for_availability_zone(self):
 
164
        _set_mock_metadata()
 
165
        self.ds.get_data()
 
166
        self.assertEqual('bar', self.ds.availability_zone)