Exemplo n.º 1
0
def test_assert_well_formed_inventory_fail_for_wrong_inventory(service_description, inventory, mocker):
    mock_check = mocker.Mock()
    mock_check.service_description = service_description
    del mock_check.check_file.module.non_existing_default_params

    with pytest.raises(AssertionError):
        assertions.assert_well_formed_inventory(mock_check, inventory)
Exemplo n.º 2
0
def test_assert_well_formed_inventory_lives_for_correct_inventory(service_description, inventory, mocker):
    mock_check = mocker.Mock()
    mock_check.service_description = service_description

    assertions.assert_well_formed_inventory(mock_check, inventory)