def test_IsTokenValid_GivenInValidToken_E_INVALID_TOKEN(self): obj = FbBase(accessToken='invalid_token') resp = obj.isTokenValid() self.assertEqual(resp, ErrorCode.E_INVALID_TOKEN)
def test_GetMyAvatar_HasAvatarUri_True(self): obj = FbBase(accessToken=TEST_TOKEN) self.assertTrue(obj.getMyAvatar())
def test_IsTokenValid_GivenValidToken_S_OK(self): obj = FbBase(accessToken=TEST_TOKEN) resp = obj.isTokenValid() self.assertEqual(resp, ErrorCode.S_OK)
def test_GetMyName_EqualMyName_True(self): obj = FbBase(accessToken=TEST_TOKEN) self.assertEqual(obj.getMyName(), 'Kudo Chien')
def test_GetMyEmail_EqualMyEmail_True(self): obj = FbBase(accessToken=TEST_TOKEN) self.assertEqual(obj.getMyEmail(), '*****@*****.**')