'Test implicit apphook loading with INSTALLED_APPS cms_apps.py'

@override_settings(INSTALLED_APPS=['cms.test_utils.project.sampleapp'], ROOT_URLCONF='cms.test_utils.project.urls_for_apphook_tests')
def test_implicit_apphooks(self):

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