def test_is_app_installed_with_installed_app(self): self.assertTrue(is_app_installed(self.installed_app_name))
def test_is_app_installed_with_missing_app(self): self.assertFalse(is_app_installed(self.missing_app_name))
def render(self, context): if is_app_installed(self.app_name): return self.nodelist_true.render(context) return self.nodelist_false.render(context)