(self)
| 14 | |
| 15 | class TestRPCAuth(unittest.TestCase): |
| 16 | def setUp(self): |
| 17 | config = configparser.ConfigParser() |
| 18 | config_path = os.path.abspath( |
| 19 | os.path.join(os.sep, os.path.abspath(os.path.dirname(__file__)), |
| 20 | "../config.ini")) |
| 21 | with open(config_path, encoding="utf8") as config_file: |
| 22 | config.read_file(config_file) |
| 23 | sys.path.insert(0, os.path.dirname(config['environment']['RPCAUTH'])) |
| 24 | self.rpcauth = importlib.import_module('rpcauth') |
| 25 | |
| 26 | def test_generate_salt(self): |
| 27 | for i in range(16, 32 + 1): |