def test_getCustomerDataFromFile(self): readCSVFile = ReadCSVFile() fileData = readCSVFile.getFileData(ENTITIES_FOLDER, "customer" + ".csv") self.assertEqual( fileData[1], ['*****@*****.**', 'Derek', 'Somerville', '1234'])
def getCustomerDataFromFile(self): customerFileReader = ReadCSVFile() customerData = customerFileReader.getFileData(ENTITIES_FOLDER, self.customerTableName + ".csv") header = customerData.pop(0) if not self.validateDataFromFileHeader(header): self.errorLogging.writeToLog("CustomerDatabaseMapping.getCustomerDataFromFile", "An error occurred:" + sqlExp.args[0]) return customerData