def testGetFormatted(self): param = raw_doc.RawParam(self.tok, self.txt_name, self.txt_text) self.assertEqual(param.getFormatted(self.formatter), '@param name text\n') param = raw_doc.RawParam(self.tok, self.txt_name, self.txt_text, self.tok_inout) self.assertEqual(param.getFormatted(self.formatter), '@param[in,out] name text\n')
def testGetType(self): param = raw_doc.RawParam(self.tok, self.txt_name, self.txt_text) self.assertEqual(param.getType(), 'param')
def testCreationInOut(self): param = raw_doc.RawParam(self.tok, self.txt_name, self.txt_text, self.tok_inout) self.assertEqual(param.name, self.txt_name) self.assertEqual(param.text, self.txt_text) self.assertEqual(param.inout, self.tok_inout)