def test_save_snapshot_match(self):
        self.assertEqual(seed_models.BuildingSnapshot.objects.all().count(), 2)
        bs2_canon = seed_models.CanonicalBuilding.objects.create(
            canonical_snapshot=self.bs2
        )

        self.bs2.canonical_building = bs2_canon
        self.bs2.save()

        seed_models.save_snapshot_match(
            self.bs1.pk, self.bs2.pk, confidence=0.9, user=self.fake_user
        )
        # We made an entirely new snapshot!
        self.assertEqual(seed_models.BuildingSnapshot.objects.all().count(), 3)
        result = seed_models.BuildingSnapshot.objects.all()[0]
        # Affirm that we give preference to the first BS passed
        # into our method.
        self.assertEqual(result.property_name, self.bs1.property_name)
        self.assertEqual(result.property_name_source, self.bs1)

        # Ensure that we transfer the meter relationship to merged children.
        self.assertEqual([r.pk for r in result.meters.all()], [self.meter.pk])

        # Test that all the parent/child relationships are sorted.
        self.assertEqual(result.confidence, 0.9)
        self.assertEqual(
            sorted([r.pk for r in result.parents.all()]),
            sorted([self.bs1.pk, self.bs2.pk])
        )

        # Test that "duplicate" CanonicalBuilding is now marked inactive.
        refreshed_bs2 = seed_models.BuildingSnapshot.objects.get(
            pk=self.bs2.pk
        )
        refreshed_bs2_canon = refreshed_bs2.canonical_building
        self.assertFalse(refreshed_bs2_canon.active)
Disables connection logging for a Balancer.  This method blocks until
dataset/ETHPy150Open buildingenergy/buildingenergy-platform/seed/tests/test_models.py/TestBuildingSnapshot.test_save_snapshot_match--crossover with--dataset/ETHPy150Open apache/libcloud/libcloud/loadbalancer/drivers/rackspace.py/RackspaceLBDriver.ex_disable_balancer_connection_logging