Ejemplo n.º 1
0
	def test_client_info__more_info(self):
		a_project = Project('project name')
		a_client = Client('client name')
		a_client.brief_description = "a brief description"
		a_client.long_description = "a long description"
		a_client.set_attribute('one more attribute', 'one_more_value')
		a_client.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'),
('Long description', 'a long description'),
('another_attribute', 'another value'),
('one more attribute', 'one_more_value')]
, generator.load_client_info(a_client.name))
Ejemplo n.º 2
0
	def test_client_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_client_info(a_client.name))