This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Makes the specified workspaces non-public. | |
Parameters: | |
wsclient - an initialized workspace client. The user logged into the client | |
must be a workspace administrator. | |
wslist - a list of workspace IDs and / or names. | |
''' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime, time, functools, operator, types | |
default_fudge = datetime.timedelta(seconds=0, microseconds=0, days=0) | |
def deep_eq(_v1, _v2, datetime_fudge=default_fudge, _assert=False): | |
""" | |
Tests for deep equality between two python data structures recursing | |
into sub-structures if necessary. Works with all python types including | |
iterators and generators. This function was dreampt up to test API responses | |
but could be used for anything. Be careful. With deeply nested structures |
NewerOlder