PEATSA/Core/Tests/UnitTests/TestMatrix.py
def testSetColumnHeaders(self):
	
		'''Tests setting new headers for all columns.'''
	
		newHeaders = ("Col 1", "Col 2")
		self.matrix.setColumnHeaders(newHeaders)
		retval = self.matrix.columnHeaders()
		self.assertEqual(retval, newHeaders)
		
		#Check if fails if the incorrect number of headers are supplied
		newHeaders = ("Col 1", "Col 2", "Extra")
		self.assertRaises(IndexError, self.matrix.setColumnHeaders, newHeaders)
Tests setting new headers for all columns.
Tests setting new headers for all columns.
Tests setting new headers for all columns .
def testSetColumnHeaders(self):
		newHeaders = ("Col 1", "Col 2")
		self.matrix.setColumnHeaders(newHeaders)
		retval = self.matrix.columnHeaders()
		self.assertEqual(retval, newHeaders)
		newHeaders = ("Col 1", "Col 2", "Extra")
		self.assertRaises(IndexError, self.matrix.setColumnHeaders, newHeaders)
def testSetColumnHeaders ( self ) : newHeaders = ( "Col 1" , "Col 2" ) self . matrix . setColumnHeaders ( newHeaders ) retval = self . matrix . columnHeaders ( ) self . assertEqual ( retval , newHeaders ) newHeaders = ( "Col 1" , "Col 2" , "Extra" ) self . assertRaises ( IndexError , self . matrix . setColumnHeaders , newHeaders )
Tests setting new headers for all columns.
Tests setting new headers for all columns .
'''Tests setting new headers for all columns.''' #Check if fails if the incorrect number of headers are supplied
self