tests/module/module_storage_driver_test.py
def assertViewEqual(self, expected_seq, actual_seq, msg=None):
        """
        Test equality in items even if they are 'view' based
        """

        new = []
        for item in actual_seq:
            if isinstance(item, tuple):
                if hasattr(item[1], 'to_dict'):
                    new.append((item[0], item[1].to_dict()))
                else:
                    new.append(item)
            else:
                if hasattr(item, 'to_dict'):
                    new.append(item.to_dict())
                else:
                    new.append(item)

        return all([t in new for t in expected_seq]) and all([t in expected_seq for t in new])

        Test equality in items even if they are 'view' based
        
Test equality in items even if they are 'view' based
Test equality in items even if they are ' view ' based
def assertViewEqual(self, expected_seq, actual_seq, msg=None):
        new = []
        for item in actual_seq:
            if isinstance(item, tuple):
                if hasattr(item[1], 'to_dict'):
                    new.append((item[0], item[1].to_dict()))
                else:
                    new.append(item)
            else:
                if hasattr(item, 'to_dict'):
                    new.append(item.to_dict())
                else:
                    new.append(item)
        return all([t in new for t in expected_seq]) and all([t in expected_seq for t in new])
def assertViewEqual ( self , expected_seq , actual_seq , msg = None ) : new = [ ] for item in actual_seq : if isinstance ( item , tuple ) : if hasattr ( item [ 1 ] , 'to_dict' ) : new . append ( ( item [ 0 ] , item [ 1 ] . to_dict ( ) ) ) else : new . append ( item ) else : if hasattr ( item , 'to_dict' ) : new . append ( item . to_dict ( ) ) else : new . append ( item ) return all ( [ t in new for t in expected_seq ] ) and all ( [ t in expected_seq for t in new ] )
Test equality in items even if they are 'view' based
Test equality in items even if they are ' view ' based
"""
        Test equality in items even if they are 'view' based
        """
self
expected_seq
actual_seq
msg