Пример #1
0
 def testGetType(self):
     param = raw_doc.RawTParam(self.tok, self.txt_name, self.txt_text)
     self.assertEqual(param.getType(), 'tparam')
Пример #2
0
 def testGetFormatted(self):
     param = raw_doc.RawTParam(self.tok, self.txt_name, self.txt_text)
     self.assertEqual(param.getFormatted(self.formatter),
                      '@tparam name text\n')
Пример #3
0
 def testCreation(self):
     param = raw_doc.RawTParam(self.tok, self.txt_name, self.txt_text)
     self.assertEqual(param.name, self.txt_name)
     self.assertEqual(param.text, self.txt_text)