File indexing completed on 2024-09-15 07:57:59
0001 from collections.abc import Hashable 0002 0003 from pology.message import Message 0004 0005 0006 def test_hash(): 0007 """Verify that we can create sets of messages.""" 0008 message1 = Message({ 0009 "source": [['some/path', 123]], 0010 }) 0011 message2 = Message({ 0012 "source": [['some/other/path', 456]], 0013 }) 0014 _set = {message1, message1, message2} 0015 assert len(_set) == 2 0016