diff --git a/frappe/tests/test_document.py b/frappe/tests/test_document.py index 6d5b8662c5..4a39bc9614 100644 --- a/frappe/tests/test_document.py +++ b/frappe/tests/test_document.py @@ -211,8 +211,13 @@ class TestDocument(unittest.TestCase): self.assertEquals(old_count + 1, new_count) before_update = frappe.db.get_value(doctype, name, 'idx') + + print frappe.cache().get_value('_link_count') + update_link_count() after_update = frappe.db.get_value(doctype, name, 'idx') + print before_update, new_count, after_update + self.assertEquals(before_update + new_count, after_update)