Beispiel #1
0
    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")
Beispiel #2
0
 def get_tabs(self, client_context, depth):
     if client_context.bot.configuration.tab_parse_output is True:
         return TextUtils.get_tabs(depth)
     return ""