Commits

Konstantine Rybnikov committed e118365

more fixes

Comments (0)

Files changed (2)

fat_po_editor/diffutil.py

         return unicode(rv)
 
     def __eq__(self, other):
-        pass
+        if not isinstance(other, Diff):
+            return False
+        return self.full_represent() == other.full_represent()
 
 def compare_two_pofiles(pofile1, pofile2):
     """Returns :class:`~Diff` object that represents difference between two po

tests/test_diffutil.py

                         msgstr=u"Second msgstr")
         diff.entry_append('rm', entry)
         entry = [POEntry(msgid=u"Third msgid",
+                         msgstr=u"Third msgstr"),
+                 POEntry(msgid=u"Third msgid",
                          msgstr=u"Third msgstr")]
         diff.entry_append('modify', entry)