'Asserts that submitting a CourseEmailTemplateForm with a blank name is stored
as a NULL in the database'

def test_blank_name_is_null(self):

    form_data = {'html_template': '{{message_body}}', 'plain_template': '{{message_body}}', 'name': ''}
    form = CourseEmailTemplateForm(form_data)
    self.assertTrue(form.is_valid())
    form.save()
    cet = CourseEmailTemplate.objects.get(name=None)
    self.assertIsNotNone(cet)
