Did I find the right examples for you? yes no

All Samples(15)  |  Call(13)  |  Derive(0)  |  Import(2)

src/n/o/nodeshot-HEAD/nodeshot/interoperability/admin.py   nodeshot(Download)
from nodeshot.core.nodes.admin import NodeAdmin
 
from models import LayerExternal, NodeExternal
 
 

src/n/o/nodeshot-HEAD/nodeshot/interoperability/tests.py   nodeshot(Download)
from nodeshot.core.base.tests import user_fixtures
 
from .models import LayerExternal
from .tasks import synchronize_external_layers
 
        layer.save()
 
        external = LayerExternal(layer=layer)
        external.interoperability = 'None'
        external.config = ''
        self.assertEqual(response.status_code, 200)
 
        external = LayerExternal(layer=layer)
        external.interoperability = 'nodeshot.interoperability.synchronizers.Nodeshot'
        external.config = '{ "layer_url": "http://test.com/" }'
        layer.save()
        layer = Layer.objects.get(pk=layer.pk)
        external = LayerExternal(layer=layer)
        external.interoperability = 'nodeshot.interoperability.synchronizers.OpenWISP'
        external.config = '{ "WRONG_parameter_name": "foo" }'
        xml_url = '%snodeshot/testing/openwisp-georss.xml' % settings.STATIC_URL
 
        external = LayerExternal(layer=layer)
        external.interoperability = 'nodeshot.interoperability.synchronizers.OpenWISP'
        external.config = '{ "url": "%s" }' % xml_url