~cbehrens/nova/servers-search

« back to all changes in this revision

Viewing changes to nova/tests/hyperv_unittest.py

  • Committer: Chris Behrens
  • Date: 2011-08-04 21:58:42 UTC
  • mfrom: (1250.1.127 nova)
  • Revision ID: cbehrens@codestud.com-20110804215842-nfykqar8k74l33tj
merged trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
from nova import context
23
23
from nova import db
24
 
from nova import flags
25
24
from nova import test
26
25
from nova.virt import hyperv
27
26
 
28
 
FLAGS = flags.FLAGS
29
 
FLAGS.connection_type = 'hyperv'
30
 
 
31
27
 
32
28
class HyperVTestCase(test.TestCase):
33
29
    """Test cases for the Hyper-V driver"""
36
32
        self.user_id = 'fake'
37
33
        self.project_id = 'fake'
38
34
        self.context = context.RequestContext(self.user_id, self.project_id)
 
35
        self.flags(connection_type='hyperv')
39
36
 
40
37
    def test_create_destroy(self):
41
38
        """Create a VM and destroy it"""