Browse Source

[2835] Update the higher-level test

We now allow having data sources with the same name if they are in
different classes. It would be significantly harder to implement and we
can identify the sources by the class+name tuple.
Michal 'vorner' Vaner 12 years ago
parent
commit
7642e09748
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/bin/cfgmgr/plugins/tests/datasrc_test.py

+ 4 - 3
src/bin/cfgmgr/plugins/tests/datasrc_test.py

@@ -205,8 +205,9 @@ class DatasrcTest(unittest.TestCase):
             "params": {},
             "name": "Whatever"
         }]})
-        # The same, but across different classes
-        self.reject({
+        # The same, but across different classes is allowed (we would
+        # identify the data source by class+name tuple)
+        self.accept({
         "IN": [
             {
                 "type": "MasterFiles",
@@ -239,7 +240,7 @@ class DatasrcTest(unittest.TestCase):
             "type": "MasterFiles",
             "cache-enable": True,
             "params": {},
-            "name": "IN/MasterFiles"
+            "name": "MasterFiles"
         },
         {
             "type": "MasterFiles",