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