def test_get_shorted_url(self): url_obj = Url() url_obj.shortened_url = 'AF45Dd' shortened_url = url_obj.get_shorted_url() self.assertEqual(shortened_url, f'localhost:8000/app/AF45Dd')