def test_blank_name(self): question = Question() question.text = 'Blank test question' question.answers = [] try: question.save() except KeyError, e: print 'Adding blank question failed: %s' % e