Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)