'Tests exception when the to_option in the email doesn\'t exist'

def test_nonexistent_to_option(self):

    with self.assertRaisesRegexp(ValueError, 'Course    email    being    sent    to    unrecognized    target:    "IDONTEXIST"    *'):
        email = CourseEmail.create(self.course.id, self.instructor, ['IDONTEXIST'], 're:    subject', 'dummy    body    goes    here')
