def test_find_by_str_displayname(self):
     display_manager = FakeDisplayManager(None)
     output = cliutils.find_resource(display_manager, 'entity_three')
     self.assertEqual(output, display_manager.get('4242'))
 def test_find_by_uuid(self):
     output = cliutils.find_resource(self.manager, UUID)
     self.assertEqual(output, self.manager.get(UUID))
 def test_find_by_str_name(self):
     output = cliutils.find_resource(self.manager, 'entity_one')
     self.assertEqual(output, self.manager.get('1234'))
 def test_find_by_integer_id(self):
     output = cliutils.find_resource(self.manager, 1234)
     self.assertEqual(output, self.manager.get('1234'))
Exemple #5
0
 def test_find_by_str_displayname(self):
     display_manager = FakeDisplayManager(None)
     output = cliutils.find_resource(display_manager, 'entity_three')
     self.assertEqual(output, display_manager.get('4242'))
Exemple #6
0
 def test_find_by_str_name(self):
     output = cliutils.find_resource(self.manager, 'entity_one')
     self.assertEqual(output, self.manager.get('1234'))
Exemple #7
0
 def test_find_by_uuid(self):
     output = cliutils.find_resource(self.manager, UUID)
     self.assertEqual(output, self.manager.get(UUID))
Exemple #8
0
 def test_find_by_integer_id(self):
     output = cliutils.find_resource(self.manager, 1234)
     self.assertEqual(output, self.manager.get('1234'))