def test_get_current_user_phid(self):
    user_PHID = 'PHID-USER-foobarbaz'
    self.phab.user.whoami.return_value = {'phid': user_PHID, 'userName': 'foo', 'realName': 'Foo Bar'}
    for i in range(10):
        phid = self.phab.get_current_user_phid()
        self.phab.user.whoami.assert_called_once()
        self.assertEqual(phid, user_PHID)
def test_get_current_user_phid(self):
    user_PHID = 'PHID-USER-foobarbaz'
    self.phab.user.whoami.return_value = {'phid': user_PHID, 'userName': 'foo', 'realName': 'Foo Bar'}
    for i in range(10):
        phid = self.phab.get_current_user_phid()
        self.phab.user.whoami.assert_called_once()
        self.assertEqual(phid, user_PHID)