Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/d/a/dataone.test_utilities-1.3.0/d1_test/instance_generator/tests/test_access_policy.py   dataone.test_utilities(Download)
  def test_010(self):
    '''select_random_set_of_permissions()'''
    for i in range(10):
      permissions = accesspolicy.random_set_of_permissions()
      self.assertTrue(accesspolicy.permission_labels_to_objects(permissions))
  def test_020(self):
    '''permissions_to_tag_string()'''
    for i in range(10):
      permissions = accesspolicy.random_set_of_permissions()
      s = accesspolicy.permissions_to_tag_string(permissions)
  def test_030(self):
    '''random_subject_with_permission_labels()'''
    for i in range(10):
      permissions = accesspolicy.random_set_of_permissions()
      subject = accesspolicy.random_subject_with_permission_labels(permissions)
  def test_040(self):
    '''random_subjects_with_permission_labels()'''
    for i in range(100):
      permissions = accesspolicy.random_set_of_permissions()
      subjects = accesspolicy.random_subjects_with_permission_labels(