示例#1
0
 def test_get_none(self):
     command.ConfigDAO.get('test', 'var').AndReturn(None)
     self.mox.ReplayAll()
     command.get_var(['test', 'get', 'test.var'])
示例#2
0
 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'])