def test_3(self): """Ignore warning from ctags""" tags = processText('Python', 'ctags: Warning: something happened\n' + PY_CODE, False) ref = {('Cls', 2): {('foobar', 3): {('func', 4): {}}}} self.assertEqual(asDicts(tags), ref)
def test_1(self): tags = processText('C++', CPP_CODE, False) ref = { ('Func', 2): {}, ('Cls', 7): { ('FirstMethod', 7): {}, ('SecondMethod', 12): {} } } self.assertEqual(asDicts(tags), ref)
def test_2(self): tags = processText('Python', PY_CODE, False) ref = {('Cls', 1): {('foobar', 2): {('func', 3): {}}}} self.assertEqual(asDicts(tags), ref)
def test_1(self): tags = processText('C++', CPP_CODE, False) ref = {('Func', 2): {}, ('Cls', 7): {('FirstMethod', 7): {}, ('SecondMethod', 12): {}}} self.assertEqual(asDicts(tags), ref)