Exemple #1
0
 def assert_annotation(self, docstring, args, rettype):
     parsed = parse_docstring(docstring)
     assert parsed is not None
     assert_equal(parsed.args, args)
     assert_equal(parsed.rettype, rettype)
Exemple #2
0
 def assert_annotation(self, docstring, args, rettype):
     parsed = parse_docstring(docstring)
     assert parsed is not None
     assert_equal(parsed.args, args)
     assert_equal(parsed.rettype, rettype)
Exemple #3
0
 def assert_no_annotation(self, docstring):
     assert_equal(parse_docstring(docstring), None)
Exemple #4
0
 def assert_no_annotation(self, docstring):
     assert_equal(parse_docstring(docstring), None)