def testWildcardPlusSubdirSubdirMatch(self):
    actual_uri_strs = set()
    actual_prefixes = set()
    for blr in self._test_wildcard_iterator(
        self.test_bucket0_uri.clone_replace_name('*/nested2/*')):
      if blr.IsPrefix():
        actual_prefixes.add(blr.root_object)
      else:
        actual_uri_strs.add(blr.url_string)
    expected_uri_strs = set([
        self.test_bucket0_uri.clone_replace_name('nested1/nested2/xyz1').uri,
        self.test_bucket0_uri.clone_replace_name('nested1/nested2/xyz2').uri])
    expected_prefixes = set()
    self.assertEqual(expected_prefixes, actual_prefixes)
    self.assertEqual(expected_uri_strs, actual_uri_strs)
Since it's potentially happening for each new visitor, weighted random
dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/tests/test_wildcard_iterator.py/CloudWildcardIteratorTests.testWildcardPlusSubdirSubdirMatch--crossover with--dataset/ETHPy150Open ryanpetrello/cleaver/cleaver/tests/test_util.py/TestRandomVariant.test_random_choice_speed