'Asserts that submitting a CourseEmailTemplateForm with a non-blank name
can be found in the database under than name as a look-up key'

def test_non_blank_name(self):

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