Lines Matching refs:assertTrue
36 self.assertTrue(self.is_tuple("(a, b)"))
37 self.assertTrue(self.is_tuple("(a, (b, c))"))
38 self.assertTrue(self.is_tuple("((a, (b, c)),)"))
39 self.assertTrue(self.is_tuple("(a,)"))
40 self.assertTrue(self.is_tuple("()"))
52 self.assertTrue(self.is_list("[]"))
53 self.assertTrue(self.is_list("[a]"))
54 self.assertTrue(self.is_list("[a, b]"))
55 self.assertTrue(self.is_list("[a, [b, c]]"))
56 self.assertTrue(self.is_list("[[a, [b, c]],]"))
143 self.assertTrue(n)
145 self.assertTrue(n)
155 self.assertTrue(self.find_binding("a", "a = b"))
156 self.assertTrue(self.find_binding("a", "a = [b, c, d]"))
157 self.assertTrue(self.find_binding("a", "a = foo()"))
158 self.assertTrue(self.find_binding("a", "a = foo().foo.foo[6][foo]"))
163 self.assertTrue(self.find_binding("a", "(a,) = b"))
164 self.assertTrue(self.find_binding("a", "(a, b, c) = [b, c, d]"))
165 self.assertTrue(self.find_binding("a", "(c, (d, a), b) = foo()"))
166 self.assertTrue(self.find_binding("a", "(a, b) = foo().foo[6][foo]"))
171 self.assertTrue(self.find_binding("a", "[a] = b"))
172 self.assertTrue(self.find_binding("a", "[a, b, c] = [b, c, d]"))
173 self.assertTrue(self.find_binding("a", "[c, [d, a], b] = foo()"))
174 self.assertTrue(self.find_binding("a", "[a, b] = foo().foo[a][foo]"))
185 self.assertTrue(self.find_binding("a", "import a"))
186 self.assertTrue(self.find_binding("a", "import b, c, a, d"))
191 self.assertTrue(self.find_binding("a", "from x import a"))
192 self.assertTrue(self.find_binding("a", "from a import a"))
193 self.assertTrue(self.find_binding("a", "from x import b, c, a, d"))
194 self.assertTrue(self.find_binding("a", "from x.b import a"))
195 self.assertTrue(self.find_binding("a", "from x.b import b, c, a, d"))
201 self.assertTrue(self.find_binding("a", "import b as a"))
202 self.assertTrue(self.find_binding("a", "import b as a, c, a as f, d"))
207 self.assertTrue(self.find_binding("a", "from x import b as a"))
208 self.assertTrue(self.find_binding("a", "from x import g as a, d as b"))
209 self.assertTrue(self.find_binding("a", "from x.b import t as a"))
210 self.assertTrue(self.find_binding("a", "from x.b import g as a, d"))
216 self.assertTrue(self.find_binding("b", "import b"))
217 self.assertTrue(self.find_binding("b", "import b, c, d"))
222 self.assertTrue(self.find_binding("a", "from x import a", "x"))
223 self.assertTrue(self.find_binding("a", "from a import a", "a"))
224 self.assertTrue(self.find_binding("a", "from x import *", "x"))
225 self.assertTrue(self.find_binding("a", "from x import b, c, a, d", "x"))
226 self.assertTrue(self.find_binding("a", "from x.b import a", "x.b"))
227 self.assertTrue(self.find_binding("a", "from x.b import *", "x.b"))
228 self.assertTrue(self.find_binding("a", "from x.b import b, c, a, d", "x.b"))
252 self.assertTrue(self.find_binding("a", "def a(): pass"))
253 self.assertTrue(self.find_binding("a", "def a(b, c, d): pass"))
254 self.assertTrue(self.find_binding("a", "def a(): b = 7"))
267 self.assertTrue(self.find_binding("a", "class a: pass"))
268 self.assertTrue(self.find_binding("a", "class a(): pass"))
269 self.assertTrue(self.find_binding("a", "class a(b): pass"))
270 self.assertTrue(self.find_binding("a", "class a(b, c=8): pass"))
285 self.assertTrue(self.find_binding("a", "for a in r: pass"))
286 self.assertTrue(self.find_binding("a", "for a, b in r: pass"))
287 self.assertTrue(self.find_binding("a", "for (a, b) in r: pass"))
288 self.assertTrue(self.find_binding("a", "for c, (a,) in r: pass"))
289 self.assertTrue(self.find_binding("a", "for c, (a, b) in r: pass"))
290 self.assertTrue(self.find_binding("a", "for c in r: a = c"))
298 self.assertTrue(self.find_binding("a", s))
304 self.assertTrue(self.find_binding("a", s))
310 self.assertTrue(self.find_binding("a", s))
316 self.assertTrue(self.find_binding("a", s))
322 self.assertTrue(self.find_binding("a", s))
328 self.assertTrue(self.find_binding("a", s))
343 self.assertTrue(self.find_binding("a", "if b in r: a = c"))
351 self.assertTrue(self.find_binding("a", s))
360 self.assertTrue(self.find_binding("a", "while b in r: a = c"))
368 self.assertTrue(self.find_binding("a", s))
382 self.assertTrue(self.find_binding("a", s))
389 self.assertTrue(self.find_binding("a", s))
398 self.assertTrue(self.find_binding("a", s))
416 self.assertTrue(self.find_binding("a", s))
426 self.assertTrue(self.find_binding("a", s))
436 self.assertTrue(self.find_binding("a", s))
448 self.assertTrue(self.find_binding("a", s))
460 self.assertTrue(self.find_binding("a", s))
492 self.assertTrue(self.find_binding("a", s))
499 self.assertTrue(self.find_binding("a", s))
530 self.assertTrue(self.find_binding("a", s))
540 self.assertTrue(self.find_binding("a", s))