[Neo-report] r1973 gregory - /trunk/neo/tests/functional/testStorage.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Mar 26 17:20:47 CET 2010


Author: gregory
Date: Fri Mar 26 17:20:45 2010
New Revision: 1973

Log:
Add expectUnknown() helper as it is different than expectNotKnown()

Modified:
    trunk/neo/tests/functional/testStorage.py

Modified: trunk/neo/tests/functional/testStorage.py
==============================================================================
--- trunk/neo/tests/functional/testStorage.py [iso-8859-1] (original)
+++ trunk/neo/tests/functional/testStorage.py [iso-8859-1] Fri Mar 26 17:20:45 2010
@@ -123,11 +123,15 @@
     def __expectPending(self, process):
         self.neo.expectStorageState(process.getUUID(), NodeStates.PENDING)
 
+    def __expectUnknown(self, process):
+        self.neo.expectStorageState(process.getUUID(), NodeStates.UNKNOWN)
+
     def __expectUnavailable(self, process):
         self.neo.expectStorageState(process.getUUID(),
                 NodeStates.TEMPORARILY_DOWN)
 
     def __expectNotKnown(self, process):
+        # /!\ Not Known != Unknown
         def expected_storage_not_known(last_try):
             storage_list = self.neo.getStorageList()
             for storage in storage_list:





More information about the Neo-report mailing list