示例#1
0
 def test_main(self):
     sys.argv = [sys.argv[0], '-s', 'foo']
     try:
         celerybeat_bin.main()
         self.assertTrue(MockBeat.running)
     finally:
         MockBeat.running = False
示例#2
0
 def test_main(self):
     sys.argv = [sys.argv[0], "-s", "foo"]
     try:
         celerybeat_bin.main()
         self.assertTrue(MockBeat.running)
     finally:
         MockBeat.running = False
示例#3
0
 def test_main(self):
     sys.argv = [sys.argv[0], "-s", "foo"]
     try:
         celerybeat.main()
         self.assertTrue(MockBeat.running)
     finally:
         MockBeat.running = False