'Test explicit apphook loading with the CMS_APPHOOKS setting.'

@override_settings(CMS_APPHOOKS=[('%s.%s' % (APP_MODULE, APP_NAME))])
def test_explicit_apphooks(self):

    self.apphook_clear()
    hooks = apphook_pool.get_apphooks()
    app_names = [hook[0] for hook in hooks]
    self.assertEqual(len(hooks), 1)
    self.assertEqual(app_names, [APP_NAME])
    self.apphook_clear()
