def test_save_unmatch_audit_log(self):
        """tests that a building unmatch logs an audit_log"""
        # arrange match to unmatch
        resp = self.client.post(
            reverse_lazy("seed:save_match"),
            data=json.dumps({
                'organization_id': self.org.pk,
                'source_building_id': self.parent_1.pk,
                'target_building_id': self.parent_2.pk,
                'create_match': True
            }),
            content_type='application/json'
        )
        body = json.loads(resp.content)
        # act
        self.client.post(
            reverse_lazy("seed:save_match"),
            data=json.dumps({
                'organization_id': self.org.pk,
                'source_building_id': self.parent_2.pk,
                'create_match': False
            }),
            content_type='application/json'
        )

        # assert
        self.assertEqual(AuditLog.objects.count(), 2)
        audit_log = AuditLog.objects.first()
        self.assertEqual(
            audit_log.content_object,
            self.parent_2.canonical_building
        )
        self.assertTrue(audit_log.action in 'save_match')
        self.assertEqual(audit_log.action_note, 'Unmatched building.')
        self.assertEqual(audit_log.audit_type, LOG)
dataset/ETHPy150Open buildingenergy/buildingenergy-platform/seed/tests/test_views.py/BuildingDetailViewTests.test_save_unmatch_audit_log/swapped operands of `in`