示例#1
0
def test_parse_rsync_object_success():
    d = {
        'src': 'test',
        'delete': True,
        'patterns': [
            'test',
        ]
    }
    rs = parse.parse_rsync_object(d)
    assert rs.src == 'test'
    assert rs.delete
    assert 'test' in rs.matcher.patterns
示例#2
0
def test_parse_rsync_object_success():
    d = {'src': 'test', 'delete': True, 'patterns': ['test',]}
    rs = parse.parse_rsync_object(d)
    assert rs.src == 'test'
    assert rs.delete
    assert 'test' in rs.matcher.patterns
示例#3
0
def test_parse_rsync_object_invalid_kwarg():
    d = {'src': 'test', 'invalid': True}
    parse.parse_rsync_object(d)
示例#4
0
def test_parse_rsync_object_invalid_kwarg():
    d = {'src': 'test', 'invalid': True}
    parse.parse_rsync_object(d)