def test_product_type_filter(self):

        self.user.get_domain_membership(self.TEST_DOMAIN).program_id = self.program.get_id
        self.user.save()

        program = Program(domain=self.TEST_DOMAIN, name='Test Program 2')
        program.save()

        bootstrap_web_user(
            username='test2', domain=self.TEST_DOMAIN, phone_number='+44445', location=self.district,
            password='dummy', email='test@example.com', user_data={}, program_id=program.get_id
        )

        assign_products_to_location(self.facility, [self.product])
        assign_products_to_location(self.other_facility, [self.product])
        assign_products_to_location(self.last_facility, [self.product])

        create_stock_report(self.facility, {'tp': 0})
        create_stock_report(self.other_facility, {'tp': 0})
        create_stock_report(self.last_facility, {'tp': 0})

        generated = list(UrgentStockoutAlert(self.TEST_DOMAIN).get_notifications())
        self.assertEqual(len(generated), 1)
        self.assertEqual(generated[0].user.get_id, self.user.get_id)
Scan through and tabulate contents to enable random access.
dataset/ETHPy150Open dimagi/commcare-hq/custom/ewsghana/tests/test_notifications.py/UrgentStockoutNotificationTestCase.test_product_type_filter--crossover with--dataset/ETHPy150Open soft-matter/pims/pims/pyav_reader.py/PyAVVideoReader._initialize