~ubuntu-branches/ubuntu/quantal/nova/quantal-proposed

« back to all changes in this revision

Viewing changes to nova/tests/test_volume_types.py

  • Committer: Package Import Robot
  • Author(s): Adam Gandelman, Adam Gandelman, Chuck Short
  • Date: 2012-08-27 15:37:18 UTC
  • mfrom: (1.1.60)
  • Revision ID: package-import@ubuntu.com-20120827153718-lj8er44eqqz1gsrj
Tags: 2012.2~rc1~20120827.15815-0ubuntu1
[ Adam Gandelman ]
* New upstream release.

[ Chuck Short ]
* debian/patches/0001-Update-tools-hacking-for-pep8-1.2-and-
  beyond.patch: Dropped we dont run pep8 tests anymore.
* debian/control: Drop pep8 build depends
* debian/*.upstart.in: Make sure we transition correctly from runlevel
  1 to 2. (LP: #820694)

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
 
61
61
        for k, v in self.vol_type1_specs.iteritems():
62
62
            self.assertEqual(v, new['extra_specs'][k],
63
 
                             'one of fields doesnt match')
 
63
                             'one of fields does not match')
64
64
 
65
65
        new_all_vtypes = volume_types.get_all_types(self.ctxt)
66
66
        self.assertEqual(len(prev_all_vtypes) + 1,
80
80
        vol_types = volume_types.get_all_types(self.ctxt)
81
81
        self.assertEqual(total_volume_types, len(vol_types))
82
82
 
83
 
    def test_non_existant_vol_type_shouldnt_delete(self):
 
83
    def test_non_existent_vol_type_shouldnt_delete(self):
84
84
        """Ensures that volume type creation fails with invalid args"""
85
85
        self.assertRaises(exception.VolumeTypeNotFoundByName,
86
86
                          volume_types.destroy, self.ctxt, "sfsfsdfdfs")