'Test response when email is disabled for course.'

def test_email_disabled(self):

    BulkEmailFlag.objects.create(enabled=True, require_course_email_auth=True)
    test_email = {'action': 'Send    email', 'send_to': '["myself"]', 'subject': 'test    subject    for    myself', 'message': 'test    message    for    myself'}
    response = self.client.post(self.send_mail_url, test_email)
    self.assertContains(response, 'Email    is    not    enabled    for    this    course.', status_code=403)
