'Assert that courses without a verified mode are not refundable'

def test_refundable_of_purchased_course(self):

    self.client.login(username=self.user.username, password=self.USER_PASSWORD)
    course = CourseFactory.create()
    CourseModeFactory.create(course_id=course.id, mode_slug='honor', min_price=10, currency='usd', mode_display_name='honor', expiration_datetime=(datetime.now(pytz.UTC) + timedelta(days=1)))
    enrollment = CourseEnrollment.enroll(self.user, course.id, mode='honor')
    self.assertFalse(enrollment.refundable())
    resp = self.client.post(reverse('student.views.dashboard', args=[]))
    self.assertIn('You    will    not    be    refunded    the    amount    you    paid.', resp.content)
