Пример #1
0
 def test_is_permission_valid_2(self):
     acl = IrodsACL('hgi', 'seq', 'tralalala')
     actual_result = acl._is_permission_valid(acl.permission)
     expected_result = False
     self.assertEqual(actual_result, expected_result)
Пример #2
0
 def test_is_permission_valid_3(self):
     self.assertFalse(IrodsACL._is_permission_valid(''))
Пример #3
0
 def test_is_permission_valid_1(self):
     acl = IrodsACL(access_group='hgi', zone='seq', permission='read')
     self.assertTrue(IrodsACL._is_permission_valid(acl.permission))