def test_get_none(self): command.ConfigDAO.get('test', 'var').AndReturn(None) self.mox.ReplayAll() command.get_var(['test', 'get', 'test.var'])
def test_get_works(self): command.ConfigDAO.get('test', 'var').AndReturn('REPLY') sys.stdout.write('"REPLY"') sys.stdout.write('\n') self.mox.ReplayAll() command.get_var(['test', 'get', 'test.var'])