Exemplo n.º 1
0
 def test_in_use(self):
     self.mox.StubOutWithMock(db, 'security_group_in_use')
     db.security_group_in_use(self.context, 123).AndReturn(True)
     self.mox.ReplayAll()
     secgroup = security_group.SecurityGroup(context=self.context)
     secgroup.id = 123
     self.assertTrue(secgroup.in_use())
     self.assertRemotes()
Exemplo n.º 2
0
 def test_in_use(self):
     self.mox.StubOutWithMock(db, 'security_group_in_use')
     db.security_group_in_use(self.context, 123).AndReturn(True)
     self.mox.ReplayAll()
     secgroup = security_group.SecurityGroup(context=self.context)
     secgroup.id = 123
     self.assertTrue(secgroup.in_use())
     self.assertRemotes()
Exemplo n.º 3
0
 def in_use(self):
     return db.security_group_in_use(self._context, self.id)
Exemplo n.º 4
0
 def in_use(self):
     return db.security_group_in_use(self._context, self.id)