1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-18 08:23:51 +03:00

Use SMB_CONF_PATH environment variable inside tests rather than hardcoded paths.

This commit is contained in:
Jelmer Vernooij
2008-02-11 13:20:24 +01:00
parent 35f5c8294e
commit eb04de69c0
5 changed files with 13 additions and 8 deletions

View File

@@ -19,10 +19,11 @@
import samr
import unittest
from samba.tests import get_loadparm
class SamrTests(unittest.TestCase):
def setUp(self):
self.conn = samr.samr("ncalrpc:", "st/client/client.conf")
self.conn = samr.samr("ncalrpc:", get_loadparm())
def test_connect5(self):
(level, info, handle) = self.conn.Connect5(None, 0, 1, samr.ConnectInfo1())