예제 #1
0
파일: manager.py 프로젝트: jortel/gofer
 def cancel(self, sn=None, criteria=None):
     admin = Admin()
     admin.container = Container()
     return admin.cancel(sn=sn, criteria=criteria)
예제 #2
0
파일: manager.py 프로젝트: jortel/gofer
 def show(self):
     admin = Admin()
     admin.container = Container()
     return admin.help()
예제 #3
0
 def test_help(self, loaded, actions):
     admin = Admin()
     admin.container = Mock()
     report = admin.help()
     loaded.assert_called_once_with(admin.container, actions.return_value)
     self.assertEqual(report, loaded.return_value)
예제 #4
0
 def cancel(self, sn=None, criteria=None):
     admin = Admin()
     admin.container = Container()
     return admin.cancel(sn=sn, criteria=criteria)
예제 #5
0
 def show(self):
     admin = Admin()
     admin.container = Container()
     return admin.help()
예제 #6
0
 def test_help(self, loaded, actions):
     admin = Admin()
     admin.container = Mock()
     report = admin.help()
     loaded.assert_called_once_with(admin.container, actions.return_value)
     self.assertEqual(report, loaded.return_value)