def testCompletion(self):
    indx = clitable.CliTable()
    self.failUnlessEqual('abc',
                         re.sub('(\[\[.+?\]\])', indx._Completion, 'abc'))
    self.failUnlessEqual('a(b(c)?)?',
                         re.sub('(\[\[.+?\]\])', indx._Completion, 'a[[bc]]'))
    self.failUnlessEqual('a(b(c)?)? de(f)?',
                         re.sub('(\[\[.+?\]\])', indx._Completion,
                                'a[[bc]] de[[f]]'))
Tests '[[]]' syntax replacement.
dataset/ETHPy150Open google/textfsm/clitable_test.py/UnitTestCliTable.testCompletion