def test_authenticated_user_cannot_create_guide_with_slug_as_a_reserved_word(self): for reserved_word in RESERVED_WORDS: # Note the gotcha that slugify'ing the title will strip out periods from the # title, so e.g. "favicon.ico" is a permitted guide title because the slug is # "faviconico". slug = Guide.get_slug_from_title(reserved_word) self._test_create_guide( guide_title=reserved_word, expect_get_success=True, expect_post_success=slug != reserved_word )