def test_match(self): data = Data({'tag': "somedata"}) assert data.match({'tag': "*"}) assert data.match({'tag': "somedata"}) assert not data.match({'tag': "someotherdata"}) assert not data.match({ 'tag': "somedata", 'not_an_attribute': "someotherdata" })
def test_match (self): data = Data({'tag':"somedata"}) assert data.match({'tag':"*"}) assert data.match({'tag':"somedata"}) assert not data.match({'tag':"someotherdata"}) assert not data.match({'tag':"somedata", 'not_an_attribute':"someotherdata"})