422
430
# replace the class that is constructured, to check its parameters
423
431
oldparserclass = config.ConfigObj
424
432
config.ConfigObj = InstrumentedConfigObj
427
435
parser = my_config._get_parser()
429
437
config.ConfigObj = oldparserclass
430
438
self.failUnless(isinstance(parser, InstrumentedConfigObj))
431
439
self.assertEqual(parser._calls,
435
454
def test_get_global_config(self):
436
455
my_config = config.LocationConfig('http://example.com')