Ejemplo n.º 1
0
class TestCoreWatchmanSetup(unittest.TestCase):

  def setUp(self):
    self.wm = Watchman()

  def test_watchman_init_none(self):
    # watchman initialised with no processes 
    self.assertEqual(len(self.wm.processes),0)
  
  def test_process_addition(self):
    self.wm.add(Process("test", "test/date-forever.sh"))
    self.assertEqual(len(self.wm.processes), 1)
Ejemplo n.º 2
0
 def setUp(self):
   self.wm = Watchman()