forked from irods/python-irodsclient
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
4 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#! /usr/bin/env python | ||
from __future__ import absolute_import | ||
import os | ||
import sys | ||
import unittest | ||
|
||
import irods.test.helpers as helpers | ||
|
||
class TestLibraryFeatures(unittest.TestCase): | ||
|
||
def setUp(self): | ||
self.sess = helpers.make_session() | ||
|
||
def tearDown(self): | ||
"""Close connections.""" | ||
self.sess.cleanup() | ||
|
||
def test_library_features__issue_556(self): | ||
if self.sess.server_version < (4, 3, 1): | ||
self.skipTest('Do not test library features before iRODS 4.3.1') | ||
|
||
features = self.sess.library_features() | ||
|
||
# Test that returned features are in the form of a Python dict object. | ||
self.assertIsInstance(features, dict) | ||
|
||
# Test that features is populated by at least one item. | ||
self.assertTrue(features) | ||
|
||
if __name__ == '__main__': | ||
# let the tests find the parent irods lib | ||
sys.path.insert(0, os.path.abspath('../..')) | ||
unittest.main() |