Ejemplo n.º 1
0
 def test__is_resource_manager_positive(self):
     event = {'hostname': RESOURCE_MANAGER_QUEUE + 'the rest of the hostname'}
     result = worker_watcher._is_resource_manager(event)
     self.assertTrue(result)
Ejemplo n.º 2
0
 def test__is_resource_manager_positive(self):
     event = {
         'hostname': RESOURCE_MANAGER_QUEUE + 'the rest of the hostname'
     }
     result = worker_watcher._is_resource_manager(event)
     self.assertTrue(result)
Ejemplo n.º 3
0
 def test__is_resource_manager_negative(self):
     event = {'hostname': 'not a matching hostname'}
     result = worker_watcher._is_resource_manager(event)
     self.assertFalse(result)
Ejemplo n.º 4
0
 def test__is_resource_manager_negative(self):
     event = {'hostname': 'not a matching hostname'}
     result = worker_watcher._is_resource_manager(event)
     self.assertFalse(result)