class ExampleTestCase(TestCase):
    def setUp(self):
        self.maven = Dog(name="Maven", breed="corgi")
        self.maven.save()

    def test_save(self):
        self.assertEquals(self.maven.name, "Maven")
        # You can mix in pytest's `assert` approach!
        assert self.maven.breed == "corgi"
def test_save():
    maven = Dog(name="Maven", breed="corgi")
    maven.save()
    assert maven.name == "Maven"
    assert maven.breed == "corgi"
 def setUp(self):
     self.maven = Dog(name="Maven", breed="corgi")
     self.maven.save()