mirror of https://github.com/Yomguithereal/fog.git
12 lines
403 B
Python
12 lines
403 B
Python
|
# =============================================================================
|
||
|
# Fog Clustering Unit Tests Utilities
|
||
|
# =============================================================================
|
||
|
|
||
|
|
||
|
class Clusters(object):
|
||
|
def __init__(self, clusters):
|
||
|
self.groups = set(tuple(sorted(values)) for values in clusters)
|
||
|
|
||
|
def __eq__(self, other):
|
||
|
return self.groups == other.groups
|