def test_save_without_short_code(self):
        self.assertEqual(
            self.url.short_code, urlsafe_b64encode(str(self.url.pk)).strip('='))
Test that saving ShortenedURL sets the short code.
dataset/ETHPy150Open ofa/connect/open_connect/media/tests/test_models.py/ShortenedURLTest.test_save_without_short_code