PEATSA/Core/Tests/UnitTests/TestMatrix.py
def testInitialisationMutability(self):
			
		'''Checks that matrix copies the data passed on initialisation so it can't be changed externally'''
		
		#Remove the last row from the list
		lists.pop()
		
		#Check the last row still exists in the matrix and check it has correct data
		self.assertEqual(self.matrix.row(1), tuple(["michael", 34.66]))
	
		#Add it again for other tests
		#NOTE: If the above test fails then so will others since the readdition wont occur.
		lists.append(["michael", 34.66])
Checks that matrix copies the data passed on initialisation so it can't be changed externally
Checks that matrix copies the data passed on initialisation so it can't be changed externally
Checks that matrix copies the data passed on initialisation so it can ' t be changed externally
def testInitialisationMutability(self):
		lists.pop()
		self.assertEqual(self.matrix.row(1), tuple(["michael", 34.66]))
		lists.append(["michael", 34.66])
def testInitialisationMutability ( self ) : lists . pop ( ) self . assertEqual ( self . matrix . row ( 1 ) , tuple ( [ "michael" , 34.66 ] ) ) lists . append ( [ "michael" , 34.66 ] )
Checks that matrix copies the data passed on initialisation so it can't be changed externally
Checks that matrix copies the data passed on initialisation so it can ' t be changed externally
'''Checks that matrix copies the data passed on initialisation so it can't be changed externally''' #Remove the last row from the list #Check the last row still exists in the matrix and check it has correct data #Add it again for other tests #NOTE: If the above test fails then so will others since the readdition wont occur.
self