def test_str_hash(self):
    'Test filter_unique with str using hash as key.'
    deduped = set()
    deduper = tools.filter_unique(self.strs, container=deduped, key=hash)
    self._test_dedup_str(deduped, deduper, hash)
Test filter_unique with str using hash as key.
def test_str_hash(self):
    
    deduped = set()
    deduper = tools.filter_unique(self.strs, container=deduped, key=hash)
    self._test_dedup_str(deduped, deduper, hash)