Revision e8234183 snf-cyclades-app/synnefo/logic/tests/reconciliation.py

b/snf-cyclades-app/synnefo/logic/tests/reconciliation.py
281 281
        self.assertFalse(net1.deleted)
282 282
        with mocked_quotaholder():
283 283
            self.reconciler.reconcile_networks()
284
        bn1 = BackendNetwork.objects.get(id=bn1.id)
285 284
        net1 = Network.objects.get(id=net1.id)
286
        self.assertEqual(bn1.operstate, "DELETED")
287 285
        self.assertTrue(net1.deleted)
286
        self.assertFalse(net1.backend_networks.filter(id=bn1.id).exists())
288 287
        # But not if action is not DESTROY
289 288
        net2 = mfactory.NetworkWithSubnetFactory(public=False, action="CREATE")
290 289
        mfactory.BackendNetworkFactory(network=net2, backend=self.backend)

Also available in: Unified diff