File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- import casbin
15
+ import os
16
16
from unittest import TestCase
17
+ import casbin
17
18
from tests .test_enforcer import get_examples
18
19
from casbin .persist .adapters import FilteredFileAdapter
19
20
from casbin .persist .adapters .filtered_file_adapter import filter_line , filter_words
20
- import tempfile
21
- import shutil
22
- import os
23
21
24
22
25
23
class Filter :
@@ -171,7 +169,7 @@ def test_empty_string_filter(self):
171
169
self .assertTrue (e .has_policy (["admin" , "domain2" , "data2" , "read" ]))
172
170
173
171
def test_mixed_empty_filter (self ):
174
- """测试混合空字符串和非空字符串的过滤器 """
172
+ """Test the filter for mixed empty and non-empty strings. """
175
173
adapter = FilteredFileAdapter (get_examples ("rbac_with_domains_policy.csv" ))
176
174
e = casbin .Enforcer (get_examples ("rbac_with_domains_model.conf" ), adapter )
177
175
filter = Filter ()
You can’t perform that action at this time.
0 commit comments