def test_create_rules_for_profiles(self): rules = create_rules('url_robots.tests.urls') self.assertEqual(rules, self.expected_rules)
def robots_txt(request, template='robots.txt'): rules = create_rules() content_type = 'text/plain; charset=utf-8' return render(request, template, {'rules': rules}, content_type=content_type)