Exemple #1
0
 def setUp(self):
     super(TestL3_NAT_dbonly_mixin, self).setUp()
     self.db = l3_db.L3_NAT_dbonly_mixin()
Exemple #2
0
 def test__get_sync_floating_ips_no_query(self):
     """Basic test that no query is performed if no router ids are passed"""
     db = l3_db.L3_NAT_dbonly_mixin()
     context = mock.Mock()
     db._get_sync_floating_ips(context, [])
     self.assertFalse(context.session.query.called)
Exemple #3
0
 def setUp(self, *args, **kwargs):
     super(TestL3_NAT_dbonly_mixin, self).setUp(*args, **kwargs)
     self.db = l3_db.L3_NAT_dbonly_mixin()