def METHOD_NAME(self):
    password = factories.PasswordFactory(user=self.user)
    self.assertNotEqual("facebook.com", password.site)
    new_password = {
        "site": "facebook.com",
        "login": "test@lesspass.com",
        "lowercase": True,
        "uppercase": True,
        "digits": False,
        "symbols": False,
        "counter": 2,
        "length": 20,
        "version": 2,
    }
    request = self.client.put("/api/passwords/%s/" % password.id, new_password)
    self.assertEqual(200, request.status_code, request.content.decode("utf-8"))
    password_updated = models.Password.objects.get(id=password.id)
    self.assertEqual(password_updated.site, "facebook.com")
    self.assertEqual(password_updated.login, "test@lesspass.com")
    self.assertTrue(password_updated.lowercase)
    self.assertTrue(password_updated.uppercase)
    self.assertFalse(password_updated.digits)
    self.assertFalse(password_updated.symbols)
    self.assertEqual(password_updated.counter, 2)
    self.assertEqual(password_updated.length, 20)
    self.assertEqual(password_updated.version, 2)