Beispiel #1
0
 def test_render_rst_with_type(self):
     node = Arg(5, 'bar')
     node.type = 'str'
     rst = node.render_rst()
     self.assertEqual(rst, ['     :param bar: ',
                            '     :type bar: str',
                            ''])
Beispiel #2
0
 def test_set_type(self):
     node = Arg(5, 'foo')
     node.type = 'str'
     self.assertEqual(node.type, 'str')
Beispiel #3
0
 def test_render_rst_with_type(self):
     node = Arg(5, 'bar')
     node.type = 'str'
     rst = node.render_rst()
     self.assertEqual(rst, ['     :param bar: ', '     :type bar: str', ''])
Beispiel #4
0
 def test_set_type(self):
     node = Arg(5, 'foo')
     node.type = 'str'
     self.assertEqual(node.type, 'str')