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

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

src/i/n/instrumental-0.5.1/instrumental/test/test_boolean_evaluator.py   instrumental(Download)
    def test_UnaryOp_Not_variable(self):
        from astkit import ast
        node = ast.UnaryOp(op=ast.Not(), operand=ast.Name(id='a'))
        expected = set([True, False])
        yield self._test_node, node, expected
 
    def test_UnaryOp_Not_literal_True(self):
        from astkit import ast
        node = ast.UnaryOp(op=ast.Not(), operand=ast.Name(id='True'))
    def test_UnaryOp_Not_literal_False(self):
        from astkit import ast
        node = ast.UnaryOp(op=ast.Not(), operand=ast.Name(id='False'))
        expected = set([True])
        yield self._test_node, node, expected