Пример #1
0
 def test_get_slug_second(self):
     slug = listing_service.get_slug(
         TEST_LISTING_SLUGS_ONLY,
         TEST_GET_SLUG_CATEGORY_SECOND
     )
     self.assertEqual(TEST_GET_SLUG_SLUG_SECOND, slug)
Пример #2
0
 def test_get_slug_graceful_fail(self):
     slug = listing_service.get_slug(
         TEST_LISTING_SLUGS_ONLY,
         'nonexistant category which definitely does not exist in slugs'
     )
     self.assertTrue(slug in TEST_GET_SLUG_SLUG_LIST)
Пример #3
0
 def test_get_slug_first(self):
     slug = listing_service.get_slug(
         TEST_LISTING_SLUGS_ONLY,
         TEST_GET_SLUG_CATEGORY_FIRST
     )
     self.assertEqual(TEST_GET_SLUG_SLUG_FIRST, slug)