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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user