Ejemplo n.º 1
0
 def test_average_by_fails(self, inputs, error):
     with pytest.raises(error):
         ListOperations.average_by(inputs)
Ejemplo n.º 2
0
 def test_average_by(self, inputs, function, result):
     assert ListOperations.average_by(sequence=inputs,
                                      function=function) == result