Пример #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'])