'Verify that display_name_with_default works as expected.'

@ddt.unpack
@ddt.data({'display_name': None, 'expected_display_name': 'problem'}, {'display_name': '', 'expected_display_name': 'problem'}, {'display_name': '    ', 'expected_display_name': 'problem'}, {'display_name': 'CAPA    101', 'expected_display_name': 'CAPA    101'})
def test_problem_display_name_with_default(self, display_name, expected_display_name):

    module = CapaFactory.create(display_name=display_name)
    self.assertEqual(module.display_name_with_default, expected_display_name)
