def test_cite_as(): docstring = bmi_docstring('DirtyHarry', author='Clint Eastwood', summary='The Good, The Bad, and the Ugly', version='0.1', license='To kill', doi='1977.12.23', url='welldoyapunk.org', cite_as=['ref1', 'ref2']) assert_equal(docstring, """ Basic Model Interface for DirtyHarry. The Good, The Bad, and the Ugly Author: - Clint Eastwood Version: 0.1 License: To kill DOI: 1977.12.23 URL: welldoyapunk.org Cite as: ref1 ref2 Examples -------- >>> from pymt.components import DirtyHarry >>> model = DirtyHarry() >>> (fname, initdir) = model.setup() >>> model.initialize(fname, dir=initdir) >>> for _ in xrange(10): ... model.update() >>> model.finalize() """.strip())
def test_cite_as(): docstring = bmi_docstring( "DirtyHarry", author="Clint Eastwood", summary="The Good, The Bad, and the Ugly", version="0.1", license="To kill", doi="1977.12.23", url="welldoyapunk.org", cite_as=["ref1", "ref2"], ) assert ( docstring == """ Basic Model Interface for DirtyHarry. The Good, The Bad, and the Ugly Author: - Clint Eastwood Version: 0.1 License: To kill DOI: 1977.12.23 URL: welldoyapunk.org Cite as: ref1 ref2 Examples -------- >>> from pymt.models import DirtyHarry >>> model = DirtyHarry() >>> (fname, initdir) = model.setup() >>> model.initialize(fname, dir=initdir) >>> for _ in xrange(10): ... model.update() >>> model.finalize() """.strip() )
def test_empty_docstring(): docstring = bmi_docstring('Model') assert_equal(docstring, DOCSTRING)
def test_empty_docstring(): docstring = bmi_docstring("Model") assert docstring == DOCSTRING