def test_exclusion(self):
        for x in range(5):
            b = BuildingSnapshot.objects.all().create()
            b.extra_data = {'ratio': 'N/A'}  # Garbage data.
            b.save()

        # Check initial condition before exclusions.
        qs = BuildingSnapshot.objects.all().json_query('ratio')
        self.assertEqual(qs.count(), 6)

        # Now exclude the garbage data.
        qs = BuildingSnapshot.objects.all().json_query(
            'ratio', excludes=['N/A']
        )

        self.assertEqual(qs.count(), 1)
        self.assertEqual(qs.first(), self.model)
Error is raised if the provided email address isn't currently registered
dataset/ETHPy150Open buildingenergy/buildingenergy-platform/seed/managers/tests/test_json_manager.py/TestJsonManager.test_exclusion--crossover with--dataset/ETHPy150Open splunk/splunk-webframework/contrib/django/django/contrib/auth/tests/views.py/PasswordResetTest.test_email_not_found