(self)
| 337 | self.assertRaises(TypeError, SymbolList, ['one', {'two': 3}]) |
| 338 | |
| 339 | def testSymbolListNoRaiseError(self): |
| 340 | a = SymbolList(['one', 'two', 'three', 4], raise_on_error=False) |
| 341 | b = SymbolList([symbol('one'), symbol('two'), symbol('three'), 4], raise_on_error=False) |
| 342 | c = SymbolList(raise_on_error=False) |
| 343 | c.append('one') |
| 344 | c.extend([symbol('two'), 'three', 4]) |
| 345 | d1 = SymbolList(['one'], raise_on_error=False) |
| 346 | d2 = SymbolList(['two', symbol('three'), 4], raise_on_error=False) |
| 347 | d = d1 + d2 |
| 348 | e = SymbolList(['one'], raise_on_error=False) |
| 349 | e += SymbolList(['two', symbol('three'), 4], raise_on_error=False) |
| 350 | f = SymbolList(['one', 'hello', 'goodbye', 'what?'], raise_on_error=False) |
| 351 | f[1] = symbol('two') |
| 352 | f[2] = 'three' |
| 353 | f[3] = 4 |
| 354 | g = SymbolList(a, raise_on_error=False) |
| 355 | assert a == b == c == d == e == f == g |
| 356 | |
| 357 | def _test(self, dtype, *values, **kwargs): |
| 358 | eq = kwargs.get("eq", lambda x, y: x == y) |
nothing calls this directly
no test coverage detected