def test_short_hashes(self):
"""
Test various functions that use short hashes
"""
table_data, table_hash = self.make_table_data()
file_data, file_hash = self.make_file_data()
contents, contents_hash = self.make_contents(table=table_hash, file=file_hash)
self._mock_log('foo/bar', contents_hash)
self._mock_tag('foo/bar', 'mytag', contents_hash[0:6], cmd=responses.PUT)
command.tag_add('foo/bar', 'mytag', contents_hash[0:6])
self._mock_version('foo/bar', '1.0', contents_hash[0:6], cmd=responses.PUT)
command.version_add('foo/bar', '1.0', contents_hash[0:6], force=True)
评论列表
文章目录