def testGetType(self): ret = raw_doc.RawReturn(self.tok, self.txt_name, self.txt_text) self.assertEqual(ret.getType(), 'return')
def testGetFormatted(self): ret = raw_doc.RawReturn(self.tok, self.txt_name, self.txt_text) self.assertEqual(ret.getFormatted(self.formatter), '@return name text\n')
def testCreation(self): ret = raw_doc.RawReturn(self.tok, self.txt_name, self.txt_text) self.assertEqual(ret.name, self.txt_name) self.assertEqual(ret.text, self.txt_text) self.assertEqual(ret.inout, None)