import unittest from my_app.models.foo import FooModel class TestFooModel(unittest.TestCase): def setUp(self): self.foo_model = FooModel() def tearDown(self): del self.foo_model def test_some_method(self): # Arrange some_data = {"key": "value"} # Act result = self.foo_model.some_method(some_data) # Assert self.assertTrue(result) if __name__ == '__main__': unittest.main()