File: client_hints_test.py

package info (click to toggle)
python-irodsclient 3.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,352 kB
  • sloc: python: 16,650; xml: 525; sh: 104; awk: 5; sql: 3; makefile: 3
file content (32 lines) | stat: -rw-r--r-- 774 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env python

import os
import sys
import unittest

import irods.test.helpers as helpers


class TestClientHints(unittest.TestCase):

    def setUp(self):
        self.sess = helpers.make_session()

    def tearDown(self):
        """Close connections."""
        self.sess.cleanup()

    def test_client_hints(self):
        client_hints = self.sess.client_hints

        self.assertIn("specific_queries", client_hints)
        self.assertIn("rules", client_hints)
        self.assertIn("plugins", client_hints)
        self.assertIn("hash_scheme", client_hints)
        self.assertIn("match_hash_policy", client_hints)


if __name__ == "__main__":
    # let the tests find the parent irods lib
    sys.path.insert(0, os.path.abspath("../.."))
    unittest.main()