pep8 and update assertions
@@ -205,15 +205,15 @@ class TestReadmeResourceFile(MockIRODSTestCaseMixin, TransactionTestCase):
# resource should not have any file at this point
self.assertEqual(self.composite_resource.files.count(), 0)
# resource has no readme file
- self.assertEqual(self.composite_resource.readme_file, None)
+ self.assertIsNone(self.composite_resource.readme_file)
# add the README.MD file to the resource at the root level
files_to_add = [self.README_MD]
self._add_files_to_resource(files_to_add)
# resource should have one file at this point
self.assertEqual(self.composite_resource.files.count(), 1)
# resource has a readme file
- self.assertNotEqual(self.composite_resource.readme_file, None)
- self.assertNotEqual(self.composite_resource.get_readme_file_content(), None)
+ self.assertIsNotNone(self.composite_resource.readme_file)
+ self.assertIsNotNone(self.composite_resource.get_readme_file_content())
def test_readme_file_8(self):
"""Test that when a README.md file with file_folder as '' instead of None,
