PEATSA/Core/Tests/UnitTests/TestMatrix.py
def testGetRow(self):
	
		'''Tests the correct row is returned.
		Tests that the correct error is raised if the requested index is out of bounds'''
	
		#Test getting row
		row = self.matrix.row(1)
		self.assertEqual(("michael", 34.66), row)
			
		#Check its a tuple
		self.assertEqual(type(row), type(()))	
		
		#Test fail
		self.assertRaises(IndexError, self.matrix.row, 4)
Tests the correct row is returned.
		Tests that the correct error is raised if the requested index is out of bounds
Tests the correct row is returned.
Tests that the correct error is raised if the requested index is out of bounds
Tests the correct row is returned . Tests that the correct error is raised if the requested index is out of bounds
def testGetRow(self):
		row = self.matrix.row(1)
		self.assertEqual(("michael", 34.66), row)
		self.assertEqual(type(row), type(()))	
		self.assertRaises(IndexError, self.matrix.row, 4)
def testGetRow ( self ) : row = self . matrix . row ( 1 ) self . assertEqual ( ( "michael" , 34.66 ) , row ) self . assertEqual ( type ( row ) , type ( ( ) ) ) self . assertRaises ( IndexError , self . matrix . row , 4 )
Tests the correct row is returned.
Tests the correct row is returned .
'''Tests the correct row is returned.
		Tests that the correct error is raised if the requested index is out of bounds''' #Test getting row #Check its a tuple #Test fail
self