def setUp(self): args = {"transaction_management":"999"} args_string = shlex.quote(json.dumps(args)) self.test_subject = HintFactoryPlugin(123,456,None,args_string) self.test_subject.hint_db = self.test_subject.mongo.test_hpit.hpit_hints
def test_constructor(self): """ HintFactoryPlugin.__init__() Test plan: -ensure that logger set to none -ensure hf is instance of SimpleHintFactory """ args = {"transaction_management":"999"} args_string = shlex.quote(json.dumps(args)) hf = HintFactoryPlugin(1,1,None,args_string) hf.logger.should.equal(None) isinstance(hf.hf,SimpleHintFactory).should.equal(True)