def test_shorten_321(self):
     self.assertEqual(
         shorten(URL.objects.get(pk=321)),
         'http://example.com/5B'
     )
 def test_shorten_pessoa_123(self):
     self.assertEqual(
         shorten(Person.objects.get(pk=234)),
         'http://example.com/p3m'
     )
 def test_shorten_123(self):
     self.assertEqual(
         shorten(URL.objects.get(pk=123)),
         'http://example.com/1z'
     )