Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/9/m/9ML-0.1.0/test/unit/nineml_test/abstraction_layer/component/dynamics_test.py   9ML(Download)
    def test_accept_visitor(self):
        from nineml.abstraction_layer.component import  StateVariable
        class TestVisitor(object):
            def visit(self, obj, **kwargs):
                return obj.accept_visitor(self, **kwargs)
            def visit_statevariable(self, component, **kwargs):
                return kwargs
 
        c = StateVariable('R1')