Example #1
0
 def test_main(self):
     sys.argv = [sys.argv[0], '-s', 'foo']
     try:
         beat_bin.main()
         self.assertTrue(MockBeat.running)
     finally:
         MockBeat.running = False
Example #2
0
 def test_main(self):
     sys.argv = [sys.argv[0], '-s', 'foo']
     try:
         beat_bin.main()
         self.assertTrue(MockBeat.running)
     finally:
         MockBeat.running = False
Example #3
0
 def test_main(self):
     sys.argv = [sys.argv[0], '-s', 'foo']
     beat_bin.main(app=self.app)
     self.Beat().run.assert_called_with()
Example #4
0
 def test_main(self):
     sys.argv = [sys.argv[0], '-s', 'foo']
     beat_bin.main(app=self.app)
     self.Beat().run.assert_called_with()