def test_update_user_from_dictionary(self):
     user = User("abc123")
     update_dict = {
         "firstname": "Sarah",
         "lastname": "Tester",
         "address": "111 Nowhere Way",
         "city": "Christiansburg"
         }
     user.update(update_dict)
     update_dict.update({"id": "abc123"})
     self.assertEquals(user.to_dict(), update_dict)
Exemple #2
0
 def update_user(self, user: User):
     user.update(self.get_db())