def test_should_print_subcommands(self): """ Subcommands should be printed after the template runs """ b_template = BasicNamespace('tom') n_template = NestedNamespace('bob') # pretend the nested_namespace template provides localcommands (it # doesn't have to actually provide them, just claim that it does) n_template.use_local_commands = True self.assertFalse(b_template.should_print_subcommands(self.command)) self.assertTrue(n_template.should_print_subcommands(self.command))