Ejemplo n.º 1
0
 def testBinOpWithBitAnd(self):
     expected_string = 'a & b'
     expected_node = GetNodeFromInput(expected_string).value
     test_node = create_node.BinOp(create_node.Name('a'), '&',
                                   create_node.Name('b'))
     self.assertNodesEqual(expected_node, test_node)
Ejemplo n.º 2
0
 def testBinOpWithFloorDiv(self):
     expected_string = 'a // b'
     expected_node = GetNodeFromInput(expected_string).value
     test_node = create_node.BinOp(create_node.Name('a'), '//',
                                   create_node.Name('b'))
     self.assertNodesEqual(expected_node, test_node)