def METHOD_NAME(self):
    reuse_limit = 2
    service = self.ctx.with_config(PolicyConfig(reuse=reuse_limit)).build()
    PasswordHistory.objects.create(user=self.ctx.user, password="password 1")
    PasswordHistory.objects.create(user=self.ctx.user, password="password 2")
    PasswordHistory.objects.create(user=self.ctx.user, password="password 3")
    service.push("password 4")
    self.assertEqual(
        reuse_limit, PasswordHistory.objects.filter(user=self.ctx.user).count()
    )
    for history in PasswordHistory.objects.filter(user=self.ctx.user):
        self.assertNotIn(history.password, ["password 1", "password 2"])