

def test_that_construction_works(self):
    msg = DataMessage(identity='me')
    self.assertEqual('me', msg.identity)
    self.assertEqual(None, msg.curi)
    msg = DataMessage(curi='bla')
    self.assertEqual('bla', msg.curi)
    self.assertEqual(None, msg.identity)

dataset/ETHPy150Open retresco/Spyder/test/test_messages.py TestMessages.test_that_construction_works/original