PEATSA/Core/Tests/UnitTests/TestMatrix.py
def testSetColumnHeader(self):
	
		'''Tests setting a column header to a new value'''
		
		newHeader = "New Head"
		self.matrix.setColumnHeader(header=newHeader, index=1)
		header = self.matrix.headerForColumn(1)
		self.assertEqual(newHeader, header)
		
		#Check fail
		self.assertRaises(IndexError, self.matrix.setColumnHeader, header=newHeader, index=10)
Tests setting a column header to a new value
Tests setting a column header to a new value
Tests setting a column header to a new value
def testSetColumnHeader(self):
		newHeader = "New Head"
		self.matrix.setColumnHeader(header=newHeader, index=1)
		header = self.matrix.headerForColumn(1)
		self.assertEqual(newHeader, header)
		self.assertRaises(IndexError, self.matrix.setColumnHeader, header=newHeader, index=10)
def testSetColumnHeader ( self ) : newHeader = "New Head" self . matrix . setColumnHeader ( header = newHeader , index = 1 ) header = self . matrix . headerForColumn ( 1 ) self . assertEqual ( newHeader , header ) self . assertRaises ( IndexError , self . matrix . setColumnHeader , header = newHeader , index = 10 )
Tests setting a column header to a new value
Tests setting a column header to a new value
'''Tests setting a column header to a new value''' #Check fail
self