def test_raises_zero_division_error(self, test_input, time_time_100): with pytest.raises(ZeroDivisionError): common.estimated_time_remaining(*test_input)
def test_estimated_time_remaining( self, test_input, expected, time_time_100): assert common.estimated_time_remaining(*test_input) == expected
def test_estimated_time_remaining(self, test_input, expected, time_time_100): assert common.estimated_time_remaining(*test_input) == expected
def estimated_time_remaining(self): return common.estimated_time_remaining(self.downloaded_bytes, self.total_bytes, self.started)