1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-30 19:42:05 +03:00

provision: Leave result reporting up to caller.

This commit is contained in:
Jelmer Vernooij
2012-02-26 15:44:40 +01:00
parent 02ba9095e2
commit 21f443eb82
7 changed files with 22 additions and 13 deletions

View File

@ -141,8 +141,8 @@ class DummyLogger(object):
def __init__(self):
self.entries = []
def info(self, text):
self.entries.append(("INFO", text))
def info(self, text, *args):
self.entries.append(("INFO", text % args))
class ProvisionResultTests(TestCase):
@ -156,6 +156,7 @@ class ProvisionResultTests(TestCase):
result.names.domain = "DOMEIN"
result.names.dnsdomain = "dnsdomein"
result.domainsid = "S1-1-1"
result.paths = ProvisionPaths()
result.report_logger(logger)
self.assertEquals(logger.entries, [
('INFO', 'Server Role: domain controller'),