def test_get_resource_id_none(self):
        if not SETTINGS['dhis2_enabled']:
            self.skipTest('DHIS2 is not configured')
        resources = {'Knights': []}
        dhis2_api = Dhis2Api(SETTINGS['dhis2_host'], SETTINGS['dhis2_username'], SETTINGS['dhis2_password'])
        dhis2_api._request.get = Mock(return_value=('foo', resources))

        result = dhis2_api.get_resource_id('Knights', 'Who Say "Ni!"')

        self.assertIsNone(result)
get_resource_id should return None if none found
dataset/ETHPy150Open dimagi/commcare-hq/custom/dhis2/tests.py/Dhis2ApiTest.test_get_resource_id_none