@@ -10,81 +10,77 @@ class ProjectTests(unittest.TestCase):
1010
1111 # ./Docker or docker/Docker
1212 def test_docker_dir (self ):
13- self .assertEqual (
14- True ,
13+ self .assertTrue (
1514 os .path .isdir ("./Dockerfile" )
1615 or os .path .isdir ("./docker/Dockerfile" ),
1716 )
1817
1918 # ./docker-compose.yml or ./docker/docker-compose.yml
2019 def test_docker_compose (self ):
21- self .assertEqual (
22- True ,
20+ self .assertTrue (
2321 os .path .isfile ('./docker-compose.yml' )
2422 or os .path .isfile ('./docker/docker-compose.yml' ),
2523 )
2624
2725 # ./.env_sample
2826 def test_env (self ):
29- self .assertEqual ( True , os .path .isfile ('./env_sample' ))
27+ self .assertTrue ( os .path .isfile ('./env_sample' ))
3028
3129 # ./.gitignore
3230 def test_gitignore (self ):
33- self .assertEqual ( True , os .path .isfile ('./.gitignore' ))
31+ self .assertTrue ( os .path .isfile ('./.gitignore' ))
3432
3533 # ./.travis.yml
3634 def test_travis (self ):
37- self .assertEqual ( True , os .path .isfile ('./.travis.yml' ))
35+ self .assertTrue ( os .path .isfile ('./.travis.yml' ))
3836
3937 # ./.codeclimate.yml
4038 def test_codeclimate (self ):
41- self .assertEqual ( True , os .path .isfile ('./.codeclimate.yml' ))
39+ self .assertTrue ( os .path .isfile ('./.codeclimate.yml' ))
4240
4341 # ./CHANGELOG.md
4442 def test_changelog (self ):
45- self .assertEqual ( True , os .path .isfile ('./CHANGELOG.md' ))
43+ self .assertTrue ( os .path .isfile ('./CHANGELOG.md' ))
4644
4745 # ./CODE_OF_CONDUCT.md
4846 def test_code_of_conduct (self ):
49- self .assertEqual ( True , os .path .isfile ('./CODE_OF_CONDUCT.md' ))
47+ self .assertTrue ( os .path .isfile ('./CODE_OF_CONDUCT.md' ))
5048
5149 # ./CONTRIBUTING.md
5250 def test_contributing (self ):
53- self .assertEqual ( True , os .path .isfile ('./CONTRIBUTING.md' ))
51+ self .assertTrue ( os .path .isfile ('./CONTRIBUTING.md' ))
5452
5553 # ./.github/ISSUE_TEMPLATE
5654 def test_issue_template (self ):
57- self .assertEqual ( True , os .path .isfile ('./.github/ISSUE_TEMPLATE' ))
55+ self .assertTrue ( os .path .isfile ('./.github/ISSUE_TEMPLATE' ))
5856
5957 # ./LICENSE.md
6058 def test_license (self ):
61- self .assertEqual (
62- True ,
59+ self .assertTrue (
6360 os .path .isfile ('./LICENSE.md' ) or os .path .isfile ('./LICENSE.txt' ),
6461 )
6562
6663 # ./.github/PULL_REQUEST_TEMPLATE
6764 def test_pr_template (self ):
68- self .assertEqual (
69- True ,
65+ self .assertTrue (
7066 os .path .isfile ('./.github/PULL_REQUEST_TEMPLATE' ),
7167 )
7268
7369 # ./README.rst
7470 def test_readme (self ):
75- self .assertEqual ( True , os .path .isfile ('./README.rst' ))
71+ self .assertTrue ( os .path .isfile ('./README.rst' ))
7672
7773 # ./TROUBLESHOOTING.md
7874 def test_troubleshooting (self ):
79- self .assertEqual ( True , os .path .isfile ('./TROUBLESHOOTING.md' ))
75+ self .assertTrue ( os .path .isfile ('./TROUBLESHOOTING.md' ))
8076
8177 # ./USAGE.md
8278 def test_usage (self ):
83- self .assertEqual ( True , os .path .isfile ('./USAGE.md' ))
79+ self .assertTrue ( os .path .isfile ('./USAGE.md' ))
8480
8581 # ./VERSION.txt
8682 def test_use_cases (self ):
87- self .assertEqual ( True , os .path .isfile ('./VERSION.txt' ))
83+ self .assertTrue ( os .path .isfile ('./VERSION.txt' ))
8884
8985
9086if __name__ == '__main__' :
0 commit comments