Exemplo n.º 1
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'))
Exemplo n.º 2
0
 def test_find_by_uuid(self):
     output = cliutils.find_resource(self.manager, UUID)
     self.assertEqual(output, self.manager.get(UUID))
Exemplo n.º 3
0
 def test_find_by_str_name(self):
     output = cliutils.find_resource(self.manager, 'entity_one')
     self.assertEqual(output, self.manager.get('1234'))
Exemplo n.º 4
0
 def test_find_by_integer_id(self):
     output = cliutils.find_resource(self.manager, 1234)
     self.assertEqual(output, self.manager.get('1234'))
Exemplo n.º 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'))
Exemplo n.º 6
0
 def test_find_by_str_name(self):
     output = cliutils.find_resource(self.manager, 'entity_one')
     self.assertEqual(output, self.manager.get('1234'))
Exemplo n.º 7
0
 def test_find_by_uuid(self):
     output = cliutils.find_resource(self.manager, UUID)
     self.assertEqual(output, self.manager.get(UUID))
Exemplo n.º 8
0
 def test_find_by_integer_id(self):
     output = cliutils.find_resource(self.manager, 1234)
     self.assertEqual(output, self.manager.get('1234'))