(self)
| 1423 | self._run_cache_key_fixture(fixture, compare_values=True) |
| 1424 | |
| 1425 | def test_cache_key_unknown_traverse(self): |
| 1426 | class Foobar1(ClauseElement): |
| 1427 | _traverse_internals = [ |
| 1428 | ("key", InternalTraversal.dp_anon_name), |
| 1429 | ("type_", InternalTraversal.dp_unknown_structure), |
| 1430 | ] |
| 1431 | |
| 1432 | def __init__(self, key, type_): |
| 1433 | self.key = key |
| 1434 | self.type_ = type_ |
| 1435 | |
| 1436 | f1 = Foobar1("foo", String()) |
| 1437 | eq_(f1._generate_cache_key(), None) |
| 1438 | |
| 1439 | def test_cache_key_no_method(self): |
| 1440 | class Foobar1(ClauseElement): |
nothing calls this directly
no test coverage detected