Пример #1
0
 def test_get_controller_reserved_names(self):
     expected = [
         'maintenance', 'management', 'states', 'vendor_passthru',
         'validate', 'detail'
     ]
     self.assertEqual(
         sorted(expected),
         sorted(
             utils.get_controller_reserved_names(api_node.NodesController)))
Пример #2
0
 def test_get_controller_reserved_names(self):
     expected = ['maintenance', 'management', 'ports', 'states',
                 'vendor_passthru', 'validate', 'detail']
     self.assertEqual(sorted(expected),
                      sorted(utils.get_controller_reserved_names(
                             api_node.NodesController)))
Пример #3
0
 def test_get_controller_reserved_names(self):
     expected = ["maintenance", "management", "states", "vendor_passthru", "validate", "detail"]
     self.assertEqual(sorted(expected), sorted(utils.get_controller_reserved_names(api_node.NodesController)))