diff --git a/src/ofxstatement/tests/test_danske.py b/src/ofxstatement/tests/test_danske.py
index <HASH>..<HASH> 100644
--- a/src/ofxstatement/tests/test_danske.py
+++ b/src/ofxstatement/tests/test_danske.py
@@ -36,8 +36,9 @@ def doctest_DanskeCsvStatementParser():
         'Paslaugų ir komisinių pajamos už gaunamus tarptautinius pervedimus USD'
         >>> l.date
         datetime.datetime(2012, 3, 1, 0, 0)
-        >>> l.id
-        '5865011796238881019'
+        >>> hash_expected = str(abs(hash((l.date,l.memo,l.amount))))
+        >>> l.id == hash_expected
+        True
 
     Second line is incoming money
         >>> l = statement.lines[1]
Don’t compare result of hash() against absolute value.

hash() is not guaranteed to give constant results, and actually it has
been changing between different versions of Python. Therefore, id
attribute (which is generated via hash()) shouldn’t be compared to the
absolute value, but to the value generated by the expected algorithm.