Test the _diff() method that returns a comma-separated string
(self)
| 2402 | ) |
| 2403 | |
| 2404 | def test_diff_method(self): |
| 2405 | """Test the _diff() method that returns a comma-separated string""" |
| 2406 | k1 = CacheKey(key=((1, (2, 3)),), bindparams=[], params={}) |
| 2407 | k2 = CacheKey(key=((1, (5, 7)),), bindparams=[], params={}) |
| 2408 | |
| 2409 | eq_(k1._diff(k2), "key[0][1][0]: 2 != 5, key[0][1][1]: 3 != 7") |
| 2410 | |
| 2411 | def test_with_string_differences(self): |
| 2412 | """Test detection of string differences""" |