def test_project_info__more_info(self): a_project = Project('project name') a_client = Client('client name') a_project.brief_description = "a brief description" a_project.set_attribute('one more attribute', 'one_more_value') a_project.set_attribute('another_attribute', 'another value') listener = ServerListener( client = a_client, project = a_project) generator = WebGenerator(project_name = a_project.name) self.assertEquals( [('Brief description', 'a brief description'), ('another_attribute', 'another value'), ('one more attribute', 'one_more_value')] , generator.load_project_info())
def test_project_info__only_name(self): a_project = Project('project name') a_client = Client('client name') listener = ServerListener( client = a_client, project = a_project) generator = WebGenerator(project_name = a_project.name) self.assertEquals(None, generator.load_project_info())