def METHOD_NAME(self):
    enrollment = force_user_enrollment(self.mbu, self.realm)
    session = UserEnrollmentSession.objects.create_from_user_enrollment(enrollment)
    with self.assertRaises(ValueError) as cm:
        ReEnrollmentSession.objects.create_from_enrollment_session(session)
    self.assertEqual(cm.exception.args[0], "The enrollment session doesn't have an enrolled device")