def test_split_layername_no_workspace(): gs = GeoServer(GS_URL) inputs = 'abracadabra' expect = (None, 'abracadabra') print 'Test split layername with no workspace' tools.assert_equals(gs.split_layername(inputs), expect)
def test_split_layername(): gs = GeoServer(GS_URL) inputs = 'black:magic' expect = ('black', 'magic') print 'Test split layername' tools.assert_equals(gs.split_layername(inputs), expect)