def test_load_metadata_csv(self): metadata_users = load_metadata_csv('ohapi/tests/data/' 'metadata_proj_member_key.csv') self.assertEqual(len(metadata_users.keys()), 2) for key in metadata_users: self.assertEqual(len(metadata_users[key]), 2) metadata_files = load_metadata_csv('ohapi/tests/data/' 'metadata_proj_file_key_works.csv') self.assertEqual(len(metadata_files.keys()), 2)
def test_load_metadata_csv(self): """ Tests for :func:`load_metadata_csv<ohapi.utils_fs.load_metadata_csv>` """ metadata_users = load_metadata_csv('ohapi/tests/data/' 'metadata_proj_member_key.csv') self.assertEqual(len(metadata_users.keys()), 2) for key in metadata_users: self.assertEqual(len(metadata_users[key]), 2) metadata_files = load_metadata_csv('ohapi/tests/data/' 'metadata_proj_file_key_works.csv') self.assertEqual(len(metadata_files.keys()), 2)