Example tutorialΒΆ

Here, use markdown to describe your tutorial. Then run some code in the boxes below and test against expected results.

import unittest
import feasst

class TestExample(unittest.TestCase):
    """Document tests"""
    def test(self):
        """Document specific test"""
        example = feasst.ModelExample()
        self.assertEqual(0, example.energy(0, 0, 0, feasst.ModelParams()))

unittest.main(argv=[''], verbosity=2, exit=False)
test (__main__.TestExample)
Document specific test ... ok

Ran 1 test in 0.001s

<unittest.main.TestProgram at 0x7fa7dd979278>