def setUp(self) -> None:
     self.statsCalc = statsCalc()
     self.allData = CSVReader(
         './UnitTests/TestData/StatisticsTestData.csv').data
     self.testData = [int(row['Value']) for row in self.allData]
     self.testAnswers = CSVReader(
         './UnitTests/TestData/StatsAnswers.csv').data
     self.list = randomIntList(1, 100, 20, 10)
     self.num_val = 4
     self.confidenceLevel = 0.95
     self.confidenceLevel_Zscore = 1.96
     self.testvaribility = 0.5
     self.moe = 4
     self.percentsample = 40
 def test_division_method_calculator(self):
     test_data = CSVReader('./UnitTests/TestData/Division.csv').data
     for row in test_data:
         self.assertEqual(
             self.calculator.divide(row['Value 2'], row['Value 1']),
             float(row['Result']))
         self.assertEqual(self.calculator.result, float(row['Result']))
 def test_squareRoot_method_calculator(self):
     test_data = CSVReader('./UnitTests/TestData/SquareRoot.csv').data
     for row in test_data:
         self.assertEqual(self.calculator.squareRoot(row['Value 1']),
                          float(row['Result']))
         self.assertEqual(self.calculator.result, float(row['Result']))