def test_hashfun_negative(self, adjust_hashfunction, hashfunction, test_input, exepcted_output): # Arrange adjust_hashfunction(hashfunction) # Act & Assert with pytest.raises(ValueError): configfile.hashfun(test_input)
def test_hashfun_positive(self, adjust_hashfunction, hashfunction, test_input, exepcted_output): # Arrange adjust_hashfunction(hashfunction) # Act result = configfile.hashfun(test_input) # Assert assert result == exepcted_output