def test_load_last_profile(self, user_profile): email = self.get_email_address() p1 = user_profile(email) p1.refresh_token = 'R1' email = self.get_email_address() p2 = user_profile(email) p2.refresh_token = 'R2' profile = user_profile.get_last_profile() assert isinstance(profile, user_profile) assert profile.email == email assert profile.refresh_token == 'R2'
def test_last_profile_is_null(self, user_profile): assert user_profile.get_last_profile() is None