Пример #1
0
def test_is_collaboration():
    record = {
        'collaborations': [
            {'value': 'CMS'},
        ],
    }

    assert is_collaboration(record)
Пример #2
0
def test_is_collaboration():
    record = {
        'collaborations': [
            {
                'value': 'CMS'
            },
        ],
    }

    assert is_collaboration(record)
Пример #3
0
def test_is_collaboration_returns_false_when_no_collaboration():
    record = {}

    assert not is_collaboration(record)
Пример #4
0
def test_is_collaboration_returns_false_when_no_collaboration():
    record = {}

    assert not is_collaboration(record)
Пример #5
0
def test_is_collaboration_returns_false_when_collaboration_is_empty():
    record = {
        'collaboration': [],
    }

    assert not is_collaboration(record)