1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-13 16:23:50 +03:00

ldb/python: Support comparing Dn's to strings.

This commit is contained in:
Jelmer Vernooij
2008-01-11 04:05:41 +01:00
parent 3a0d14f335
commit 3558789079
3 changed files with 19 additions and 0 deletions

View File

@@ -249,6 +249,10 @@ class DnTests(unittest.TestCase):
def setUp(self):
self.ldb = ldb.Ldb("foo.tdb")
def test_eq_str(self):
x = ldb.Dn(self.ldb, "dc=foo,bar=bloe")
self.assertEquals("dc=foo,bar=bloe", x)
def test_str(self):
x = ldb.Dn(self.ldb, "dc=foo,bar=bloe")
self.assertEquals(x.__str__(), "dc=foo,bar=bloe")