Skip to content

Commit

Permalink
Merge pull request #50 from osuosl/tschuy/33/fix_tests
Browse files Browse the repository at this point in the history
Reorder HVM modify form setup
  • Loading branch information
tschuy committed Jun 4, 2015
2 parents fbeb01f + 02e3d54 commit d4c92e9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ganeti_webmgr/virtualmachines/tests/forms/modify.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ def setUp(self):

self.cluster.info = XEN_INFO.copy()
self.cluster.info['default_hypervisor'] = 'xen-hvm'
self.vm.info = XEN_HVM_INSTANCE.copy()
self.vm.refresh()
self.vm.info = XEN_HVM_INSTANCE.copy()

# data custom to HVM
self.data['os'] = 'debootstrap+default'
Expand Down Expand Up @@ -294,8 +294,6 @@ def test_field_initial_values(self):
hvparams = self.vm.info['hvparams']
form = self.Form(self.vm)

# print hvparam_fields
# print hvparams
for field in hvparam_fields:
self.assertEqual(form.fields[field].initial, hvparams[field])

Expand Down

0 comments on commit d4c92e9

Please sign in to comment.