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

All Samples(14)  |  Call(14)  |  Derive(0)  |  Import(0)

src/i/n/instrumental-0.5.1/instrumental/test/test_constructs.py   instrumental(Download)
    def _makeOne(self, selector='3.1', pragmas=[]):
        node = ast.BoolOp(values=[ast.Name(id='a'),
                                  ast.Name(id='b')],
                          op=ast.Or(),
                          col_offset=12,
    def _makeOr(self, *conditions):
        node = self._makeNode(ast.Or(), conditions)
        return LogicalOr('somemodule', '3.1', node, {})
 
    def _test(self, expected, ctor, conditions):

src/i/n/instrumental-0.5.1/instrumental/test/test_boolean_evaluator.py   instrumental(Download)
    def test_BoolOp_2_pin_or_without_literals(self):
        from astkit import ast
        node = ast.BoolOp(op=ast.Or(),
                          values=[ast.Name(id='a'),
                                  ast.Name(id='b'),
    def test_BoolOp_3_pin_or_without_literals(self):
        from astkit import ast
        node = ast.BoolOp(op=ast.Or(),
                          values=[ast.Name(id='a'),
                                  ast.Name(id='b'),
    def test_BoolOp_3_pin_or_with_1_literal_True(self):
        from astkit import ast
        node = ast.BoolOp(op=ast.Or(),
                          values=[ast.Name(id='a'),
                                  ast.Name(id='True'),
    def test_BoolOp_3_pin_or_with_1_literal_False(self):
        from astkit import ast
        node = ast.BoolOp(op=ast.Or(),
                          values=[ast.Name(id='a'),
                                  ast.Name(id='False'),

src/i/n/instrumental-0.5.1/instrumental/test/test_storage.py   instrumental(Download)
        from instrumental.constructs import LogicalOr
 
        node = ast.BoolOp(op=ast.Or(),
                          values=[ast.Name(id="a"), ast.Name(id="b")],
                          lineno=4)
    def test_serialize_LogicalBoolean_Or(self):
        from instrumental.constructs import LogicalOr
 
        node = ast.BoolOp(op=ast.Or(),
                          values=[ast.Name(id="a"), ast.Name(id="b")],

src/i/n/instrumental-0.5.1/instrumental/test/test_recorder.py   instrumental(Download)
    def test_construct_with_literal(self):
        recorder = ExecutionRecorder.get()
        node = ast.BoolOp(op=ast.Or(),
                          values=[ast.Name(id="foo"),
                                  ast.Str(s='""')],

src/i/n/instrumental-0.5.1/instrumental/test/test_json_storage.py   instrumental(Download)
    def test_encode_LogicalOr(self):
        from instrumental.storage import ObjectEncoder as OE
        node = ast.BoolOp(op=ast.Or(),
                          values=[ast.Name(id='a'), ast.Name(id='b')],
                          lineno=4)
    def test_encode_ModuleMetadata(self):
        from instrumental.storage import ObjectEncoder as OE
        node = ast.BoolOp(op=ast.Or(),
                          values=[ast.Name(id='a'), ast.Name(id='b')],
                          lineno=4)
    def test_Encode_ExecutionRecorder(self):
        from instrumental.storage import ObjectEncoder as OE
        node = ast.BoolOp(op=ast.Or(),
                          values=[ast.Name(id='a'), ast.Name(id='b')],
                          lineno=4)
    def test_roundtrip(self):
        from instrumental.storage import JSONSerializer
 
        node = ast.BoolOp(op=ast.Or(),
                          values=[ast.Name(id='a'), ast.Name(id='b')],
    def test_roundtrip(self):
        from instrumental.storage import ResultStore
 
        node = ast.BoolOp(op=ast.Or(),
                          values=[ast.Name(id='a'), ast.Name(id='b')],