Beispiel #1
0
 def test_update_full_name_happy_path(self):
     strategy = mock.MagicMock()
     update_full_name(strategy, {"full_name": "Bort"}, self.user)
     self.assertEqual(self.user.full_name, "Bort")
     self.assertTrue(strategy.storage.user.changed.called)
Beispiel #2
0
 def test_update_full_name_no_full_name(self):
     # Just test that we don't blow up
     update_full_name(mock.MagicMock(), {}, self.user)