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
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
def test_parse_rsync_object_invalid_kwarg(): d = {'src': 'test', 'invalid': True} parse.parse_rsync_object(d)