def METHOD_NAME(self, mock_post):
    self.user = self.force_login(username="demo")
    self.add_user_permissions("promgen.add_rule", "promgen.change_service")
    response = self.client.post(
        reverse(
            "rule-new",
            kwargs={"content_type": "service", "object_id": 1},
        ),
        {"rules": tests.Data("examples", "import.rule.yml").raw()},
        follow=True,
    )
    self.assertRoute(response, views.ServiceDetail, status=200)
    self.assertCount(models.Rule, 3, "Missing Rule")