def test_get_tabs(self): tabs = TextUtils.get_tabs(0) self.assertEqual(tabs, "") tabs = TextUtils.get_tabs(1, tabs="\t") self.assertEqual(tabs, "\t") tabs = TextUtils.get_tabs(5, tabs="\t") self.assertEqual(tabs, "\t\t\t\t\t")
def get_tabs(self, client_context, depth): if client_context.bot.configuration.tab_parse_output is True: return TextUtils.get_tabs(depth) return ""