class TestBucketlistModel(TestCase): """ Class containing tests for Bucketlist """ def setUp(self): self.bucketlist_instance = BucketList('Holiday', 'Let us travel the world') def tearDown(self): del self.bucketlist_instance def test_creation_of_bucketlist_and_get_bucketlist(self): self.assertEqual( self.bucketlist_instance.get_details(), { "title": "Holiday", "description": "Let us travel the world", "items": [] }, )