def test_create_profile_user_auth_details(self) -> None: user_auth_details = auth_services.create_profile_user_auth_details( 'uid', 'pid') self.assertEqual(user_auth_details.user_id, 'uid') self.assertEqual(user_auth_details.parent_user_id, 'pid') self.assertIsNone(user_auth_details.gae_id) self.assertIsNone(user_auth_details.firebase_auth_id) self.assertFalse(user_auth_details.deleted)
def test_create_profile_user_auth_details_with_self_as_parent_is_error( self) -> None: with self.assertRaisesRegex( ValueError, 'cannot be its own parent'): # type: ignore[no-untyped-call] auth_services.create_profile_user_auth_details('uid', 'uid')
def test_create_profile_user_auth_details_with_self_as_parent_is_error( self): with self.assertRaisesRegexp(ValueError, 'cannot be its own parent'): auth_services.create_profile_user_auth_details('uid', 'uid')