예제 #1
0
 def test_setListOfVals_return_None(self):
     listOfVals = [0, 2, 4, 6, 8, 10]
     newList = [1, 3, 5, 7, 9]
     stats = Statistics(listOfVals)
     stats.setListOfVals(newList)
     actual = stats.getList()
     expected = [1, 3, 5, 7, 9]
     self.assertEqual(actual, expected)
예제 #2
0
 def test_getListOfVals_returns_List(self):
     listOfVals = [0, 2, 4, 6, 8, 10]
     stats = Statistics(listOfVals)
     actual = stats.getList()
     expected = [0, 2, 4, 6, 8, 10]
     self.assertEqual(actual, expected)