def test_check_limit_and_offset_values_invalid_offset(): from MicrosoftDefenderAdvancedThreatProtection import check_limit_and_offset_values with pytest.raises(Exception) as e: assert check_limit_and_offset_values(limit='1', offset='-4') assert str( e.value ) == "Error: You can only enter a positive integer to offset argument."
def test_check_limit_and_offset_values_limit_zero(mocker): from MicrosoftDefenderAdvancedThreatProtection import check_limit_and_offset_values with pytest.raises(Exception) as e: assert check_limit_and_offset_values(limit='0', offset='1') assert str( e.value ) == "Error: The value of the limit argument must be a positive integer."
def test_check_limit_and_offset_values_no_error(): from MicrosoftDefenderAdvancedThreatProtection import check_limit_and_offset_values res = check_limit_and_offset_values(limit='2', offset='1') assert res == (2, 1)