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