Lines Matching refs:assertTrue
33 self.assertTrue(self.is_tuple("(a, b)"))
34 self.assertTrue(self.is_tuple("(a, (b, c))"))
35 self.assertTrue(self.is_tuple("((a, (b, c)),)"))
36 self.assertTrue(self.is_tuple("(a,)"))
37 self.assertTrue(self.is_tuple("()"))
49 self.assertTrue(self.is_list("[]"))
50 self.assertTrue(self.is_list("[a]"))
51 self.assertTrue(self.is_list("[a, b]"))
52 self.assertTrue(self.is_list("[a, [b, c]]"))
53 self.assertTrue(self.is_list("[[a, [b, c]],]"))
140 self.assertTrue(n)
142 self.assertTrue(n)
152 self.assertTrue(self.find_binding("a", "a = b"))
153 self.assertTrue(self.find_binding("a", "a = [b, c, d]"))
154 self.assertTrue(self.find_binding("a", "a = foo()"))
155 self.assertTrue(self.find_binding("a", "a = foo().foo.foo[6][foo]"))
160 self.assertTrue(self.find_binding("a", "(a,) = b"))
161 self.assertTrue(self.find_binding("a", "(a, b, c) = [b, c, d]"))
162 self.assertTrue(self.find_binding("a", "(c, (d, a), b) = foo()"))
163 self.assertTrue(self.find_binding("a", "(a, b) = foo().foo[6][foo]"))
168 self.assertTrue(self.find_binding("a", "[a] = b"))
169 self.assertTrue(self.find_binding("a", "[a, b, c] = [b, c, d]"))
170 self.assertTrue(self.find_binding("a", "[c, [d, a], b] = foo()"))
171 self.assertTrue(self.find_binding("a", "[a, b] = foo().foo[a][foo]"))
182 self.assertTrue(self.find_binding("a", "import a"))
183 self.assertTrue(self.find_binding("a", "import b, c, a, d"))
188 self.assertTrue(self.find_binding("a", "from x import a"))
189 self.assertTrue(self.find_binding("a", "from a import a"))
190 self.assertTrue(self.find_binding("a", "from x import b, c, a, d"))
191 self.assertTrue(self.find_binding("a", "from x.b import a"))
192 self.assertTrue(self.find_binding("a", "from x.b import b, c, a, d"))
198 self.assertTrue(self.find_binding("a", "import b as a"))
199 self.assertTrue(self.find_binding("a", "import b as a, c, a as f, d"))
204 self.assertTrue(self.find_binding("a", "from x import b as a"))
205 self.assertTrue(self.find_binding("a", "from x import g as a, d as b"))
206 self.assertTrue(self.find_binding("a", "from x.b import t as a"))
207 self.assertTrue(self.find_binding("a", "from x.b import g as a, d"))
213 self.assertTrue(self.find_binding("b", "import b"))
214 self.assertTrue(self.find_binding("b", "import b, c, d"))
219 self.assertTrue(self.find_binding("a", "from x import a", "x"))
220 self.assertTrue(self.find_binding("a", "from a import a", "a"))
221 self.assertTrue(self.find_binding("a", "from x import *", "x"))
222 self.assertTrue(self.find_binding("a", "from x import b, c, a, d", "x"))
223 self.assertTrue(self.find_binding("a", "from x.b import a", "x.b"))
224 self.assertTrue(self.find_binding("a", "from x.b import *", "x.b"))
225 self.assertTrue(self.find_binding("a", "from x.b import b, c, a, d", "x.b"))
249 self.assertTrue(self.find_binding("a", "def a(): pass"))
250 self.assertTrue(self.find_binding("a", "def a(b, c, d): pass"))
251 self.assertTrue(self.find_binding("a", "def a(): b = 7"))
264 self.assertTrue(self.find_binding("a", "class a: pass"))
265 self.assertTrue(self.find_binding("a", "class a(): pass"))
266 self.assertTrue(self.find_binding("a", "class a(b): pass"))
267 self.assertTrue(self.find_binding("a", "class a(b, c=8): pass"))
282 self.assertTrue(self.find_binding("a", "for a in r: pass"))
283 self.assertTrue(self.find_binding("a", "for a, b in r: pass"))
284 self.assertTrue(self.find_binding("a", "for (a, b) in r: pass"))
285 self.assertTrue(self.find_binding("a", "for c, (a,) in r: pass"))
286 self.assertTrue(self.find_binding("a", "for c, (a, b) in r: pass"))
287 self.assertTrue(self.find_binding("a", "for c in r: a = c"))
295 self.assertTrue(self.find_binding("a", s))
301 self.assertTrue(self.find_binding("a", s))
307 self.assertTrue(self.find_binding("a", s))
313 self.assertTrue(self.find_binding("a", s))
319 self.assertTrue(self.find_binding("a", s))
325 self.assertTrue(self.find_binding("a", s))
340 self.assertTrue(self.find_binding("a", "if b in r: a = c"))
348 self.assertTrue(self.find_binding("a", s))
357 self.assertTrue(self.find_binding("a", "while b in r: a = c"))
365 self.assertTrue(self.find_binding("a", s))
379 self.assertTrue(self.find_binding("a", s))
386 self.assertTrue(self.find_binding("a", s))
395 self.assertTrue(self.find_binding("a", s))
413 self.assertTrue(self.find_binding("a", s))
423 self.assertTrue(self.find_binding("a", s))
433 self.assertTrue(self.find_binding("a", s))
445 self.assertTrue(self.find_binding("a", s))
457 self.assertTrue(self.find_binding("a", s))
489 self.assertTrue(self.find_binding("a", s))
496 self.assertTrue(self.find_binding("a", s))
527 self.assertTrue(self.find_binding("a", s))
537 self.assertTrue(self.find_binding("a", s))