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)
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)