Reformat '* On Session' keywords (aaa)
[integration/test.git] / csit / libraries / SubStrings.robot
1 *** Settings ***
2 Documentation       Utility keywords for verification of substring occurrence
3
4
5 *** Keywords ***
6 Should Contain All Sub Strings
7     [Documentation]    Passes if ${attr} includes all substrings from @{checked}, fails otherwise
8     [Arguments]    ${attr}    @{checked}
9     FOR    ${item}    IN    @{checked}
10         Should Contain    ${attr}    ${item}
11     END
12
13 Should Not Contain Any Sub Strings
14     [Documentation]    Fails if ${attr} includes at least one substring from @{checked}, passes otherwise
15     [Arguments]    ${attr}    @{checked}
16     FOR    ${item}    IN    @{checked}
17         Should Not Contain    ${attr}    ${item}
18     END