Exemplo n.º 1
0
def test_has_duplicate(list_input, list_output):
    """
    Given
        - A list of dictionaries with layout data called ID_SET & layout_id

    When
        - checking for duplicate

    Then
        - Ensure return true for duplicate layout
        - Ensure return false for layout with different kind
    """
    result = has_duplicate(ID_SET, list_input, 'Layouts', False)
    assert list_output == result
Exemplo n.º 2
0
def test_had_duplicates(id_set, id_to_check, result):
    assert result == has_duplicate(id_set, id_to_check)