mirror of
https://github.com/samba-team/samba.git
synced 2025-07-15 16:59:09 +03:00
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
(This used to be commit 66327b8bd8
)
This commit is contained in:
@ -39,7 +39,7 @@ PyObject *py_talloc_import_ex(PyTypeObject *py_type, TALLOC_CTX *mem_ctx,
|
||||
PyObject *py_talloc_default_repr(PyObject *py_obj)
|
||||
{
|
||||
py_talloc_Object *obj = (py_talloc_Object *)py_obj;
|
||||
PyTypeObject *type = (PyTypeObject*)PyObject_Type((PyObject *)obj);
|
||||
|
||||
return PyString_FromFormat("<talloc: %s>",
|
||||
talloc_get_name(obj->talloc_ctx));
|
||||
return PyString_FromFormat("<%s>", type->tp_name);
|
||||
}
|
||||
|
@ -27,6 +27,8 @@ class UnixinfoTests(RpcInterfaceTestCase):
|
||||
def test_getpwuid(self):
|
||||
infos = self.conn.GetPWUid(range(512))
|
||||
self.assertEquals(512, len(infos))
|
||||
self.assertEquals("", infos[0].shell)
|
||||
self.assertEquals("", infos[0].homedir)
|
||||
|
||||
def test_gidtosid(self):
|
||||
self.conn.GidToSid(1000)
|
||||
|
Reference in New Issue
Block a user