def METHOD_NAME(self):
    event = self.get_event()
    self.create_release(
        project=event.group.project,
        version="1",
        date_added=datetime(2020, 9, 1, 3, 8, 24, 880386),
        environments=[self.environment],
    )
    new_release = self.create_release(
        project=event.group.project,
        version="2",
        date_added=datetime(2020, 9, 2, 3, 8, 24, 880386),
        environments=[self.environment],
    )
    other_env_release = self.create_release(
        project=event.group.project,
        version="4",
        date_added=datetime(2020, 9, 3, 3, 8, 24, 880386),
    )
    event.data["tags"] = (("release", new_release.version),)
    environment_rule = self.get_rule(rule=Rule(environment_id=self.environment.id))
    self.assertPasses(environment_rule, event)
    event.data["tags"] = (("release", other_env_release.version),)
    environment_rule = self.get_rule(rule=Rule(environment_id=self.environment.id))
    self.assertDoesNotPass(environment_rule, event)