@@ -13,7 +13,7 @@ def test_get_foreign_id_with_dir(self):
13
13
path = Path (os .path .join (self .base_path , "jan/week1" ))
14
14
crawldir = CrawlDirectory (AlephAPI , {}, path )
15
15
foreign_id = crawldir .get_foreign_id (path )
16
- assert foreign_id == None
16
+ assert foreign_id is None
17
17
18
18
def test_get_foreign_id_with_file (self ):
19
19
path = Path (os .path .join (self .base_path , "feb/2.txt" ))
@@ -33,18 +33,18 @@ def test_is_excluded(self):
33
33
path = Path (os .path .join (self .base_path , "jan/week1" ))
34
34
crawldir = CrawlDirectory (AlephAPI , {}, path )
35
35
is_excluded = crawldir .is_excluded (path )
36
- assert is_excluded == False
36
+ assert not is_excluded
37
37
38
38
def test_is_excluded_no_exclude (self ):
39
39
path = Path (os .path .join (self .base_path , "jan/week1" ))
40
40
crawldir = CrawlDirectory (AlephAPI , {}, path )
41
41
crawldir .exclude = None
42
42
is_excluded = crawldir .is_excluded (path )
43
- assert is_excluded == False
43
+ assert not is_excluded
44
44
45
45
def test_is_excluded_exclude_dir (self ):
46
46
path = Path (os .path .join (self .base_path , "jan/week1" ))
47
47
crawldir = CrawlDirectory (AlephAPI , {}, path , nojunk = True )
48
48
crawldir .exclude ["d" ] = re .compile (r"week1\/*" , re .I )
49
49
is_excluded = crawldir .is_excluded (path )
50
- assert is_excluded == True
50
+ assert is_excluded
0 commit comments