Lines Matching refs:hash
235 # Make sure that the hash member of the action object properly
236 # contains the value of the "hash" named attribute.
237 a = action.fromstr("file hash=abc123 path=usr/bin/foo mode=0755 owner=root group=bin")
238 self.assertTrue(a.hash == "abc123")
292 # the payload hash as the named attribute "hash", in which case
293 # the resulting re-stringification emits the payload hash as a
295 s = "file hash=abc123 path=usr/bin/foo mode=0755 owner=root group=bin"
300 self.assertTrue("hash=abc123" not in s2)
304 # ... unless of course the hash can't be represented that way.
306 "hash=abc=123": "abc=123",
307 "hash=\"one with spaces\"": "one with spaces",
308 "hash='one with \" character'": 'one with " character',
309 "hash=\"'= !@$%^\)(*\"": "'= !@$%^\)(*",
310 """hash="\\"'= \\ " """:""""'= \\ """,
318 self.assertTrue(a.hash == v)
519 # The payload hash can't be specified as both a named and a
521 self.assertInvalid("file xyz789 hash=abc123 path=usr/bin/foo mode=0755 owner=root group=bin")
522 action.fromstr("file abc123 hash=abc123 path=usr/bin/foo mode=0755 owner=root group=bin")