(self)
| 2361 | class TestCacheKeyUtil(fixtures.TestBase): |
| 2362 | |
| 2363 | def test_str(self): |
| 2364 | eq_( |
| 2365 | re.compile(r"[\n\s]+", re.M).sub( |
| 2366 | " ", |
| 2367 | str( |
| 2368 | CacheKey( |
| 2369 | key=((1, (2, 7, 4), 5),), bindparams=[], params={} |
| 2370 | ) |
| 2371 | ), |
| 2372 | ), |
| 2373 | "CacheKey(key=( ( 1, ( 2, 7, 4, ), 5, ), ),)", |
| 2374 | ) |
| 2375 | |
| 2376 | def test_nested_tuple_difference(self): |
| 2377 | """Test difference detection in nested tuples""" |