Commit b9bd7652 by Bach Dániel

dashboard: fix tests

parent 76da6860
......@@ -1395,6 +1395,7 @@
"raw_data": "",
"vnc_port": 1234,
"num_cores": 2,
"status": "RUNNING",
"modified": "2013-10-14T07:27:38.192Z"
}
},
......
......@@ -199,6 +199,8 @@ class VmDetailTest(LoginMixin, TestCase):
inst = Instance.objects.get(pk=1)
inst.set_level(self.u1, 'owner')
inst.add_interface(vlan=Vlan.objects.get(pk=1), user=self.us)
inst.status = 'RUNNING'
inst.save()
iface_count = inst.interface_set.count()
c.post("/dashboard/interface/1/delete/")
......@@ -211,6 +213,8 @@ class VmDetailTest(LoginMixin, TestCase):
inst.set_level(self.u1, 'owner')
vlan = Vlan.objects.get(pk=1)
inst.add_interface(vlan=vlan, user=self.us)
inst.status = 'RUNNING'
inst.save()
iface_count = inst.interface_set.count()
response = c.post("/dashboard/interface/1/delete/",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment