Lines Matching refs:binop

92         binop = t.body[1].value.values[0].value
93 self.assertEqual(type(binop), ast.BinOp)
94 self.assertEqual(type(binop.left), ast.Name)
95 self.assertEqual(type(binop.op), ast.Mult)
96 self.assertEqual(type(binop.right), ast.Call)
97 self.assertEqual(binop.lineno, 3)
98 self.assertEqual(binop.left.lineno, 3)
99 self.assertEqual(binop.right.lineno, 3)
100 self.assertEqual(binop.col_offset, 3)
101 self.assertEqual(binop.left.col_offset, 3)
102 self.assertEqual(binop.right.col_offset, 7)
173 binop = t.body[1].value.values[0].value
174 self.assertEqual(type(binop), ast.BinOp)
175 self.assertEqual(type(binop.left), ast.Name)
176 self.assertEqual(type(binop.op), ast.Mult)
177 self.assertEqual(type(binop.right), ast.JoinedStr)
178 self.assertEqual(binop.lineno, 3)
179 self.assertEqual(binop.left.lineno, 3)
180 self.assertEqual(binop.right.lineno, 3)
181 self.assertEqual(binop.col_offset, 3)
182 self.assertEqual(binop.left.col_offset, 3)
183 self.assertEqual(binop.right.col_offset, 7)
185 self.assertEqual(len(binop.right.values), 3)
186 self.assertEqual(type(binop.right.values[0]), ast.Str)
187 self.assertEqual(type(binop.right.values[1]), ast.FormattedValue)
188 self.assertEqual(type(binop.right.values[2]), ast.Str)
189 self.assertEqual(binop.right.values[0].lineno, 3)
190 self.assertEqual(binop.right.values[1].lineno, 3)
191 self.assertEqual(binop.right.values[2].lineno, 3)
192 call = binop.right.values[1].value
230 binop = t.body[1].value.values[0].value
231 self.assertEqual(type(binop), ast.BinOp)
232 self.assertEqual(type(binop.left), ast.Name)
233 self.assertEqual(type(binop.op), ast.Mult)
234 self.assertEqual(type(binop.right), ast.Call)
235 self.assertEqual(binop.lineno, 3)
236 self.assertEqual(binop.left.lineno, 3)
237 self.assertEqual(binop.right.lineno, 3)
238 self.assertEqual(binop.col_offset, 3)
239 self.assertEqual(binop.left.col_offset, 3)
240 self.assertEqual(binop.right.col_offset, 7)
242 binop = t.body[1].value.values[2].value
243 self.assertEqual(type(binop), ast.BinOp)
244 self.assertEqual(type(binop.left), ast.Name)
245 self.assertEqual(type(binop.op), ast.Mult)
246 self.assertEqual(type(binop.right), ast.Call)
247 self.assertEqual(binop.lineno, 3)
248 self.assertEqual(binop.left.lineno, 3)
249 self.assertEqual(binop.right.lineno, 3)
250 self.assertEqual(binop.col_offset, 3) # FIXME: this is wrong
251 self.assertEqual(binop.left.col_offset, 3) # FIXME: this is wrong
252 self.assertEqual(binop.right.col_offset, 7) # FIXME: this is wrong
254 binop = t.body[1].value.values[4].value
255 self.assertEqual(type(binop), ast.BinOp)
256 self.assertEqual(type(binop.left), ast.Name)
257 self.assertEqual(type(binop.op), ast.Mult)
258 self.assertEqual(type(binop.right), ast.Call)
259 self.assertEqual(binop.lineno, 3)
260 self.assertEqual(binop.left.lineno, 3)
261 self.assertEqual(binop.right.lineno, 3)
262 self.assertEqual(binop.col_offset, 3) # FIXME: this is wrong
263 self.assertEqual(binop.left.col_offset, 3) # FIXME: this is wrong
264 self.assertEqual(binop.right.col_offset, 7) # FIXME: this is wrong
308 binop = t.body[1].value.values[1].value
309 self.assertEqual(type(binop), ast.BinOp)
310 self.assertEqual(type(binop.left), ast.Name)
311 self.assertEqual(type(binop.op), ast.Mult)
312 self.assertEqual(type(binop.right), ast.Call)
313 self.assertEqual(binop.lineno, 4)
314 self.assertEqual(binop.left.lineno, 4)
315 self.assertEqual(binop.right.lineno, 6)
316 self.assertEqual(binop.col_offset, 3)
317 self.assertEqual(binop.left.col_offset, 3)
318 self.assertEqual(binop.right.col_offset, 7)