Remove the class User and its tests

as it is not used.
This commit is contained in:
Rafa de la Torre
2016-10-03 16:54:40 +02:00
parent fcca5da302
commit 18e1a5c7c9
2 changed files with 0 additions and 67 deletions
@@ -1,24 +0,0 @@
class User(object):
def __init__(self, username, orgname = None):
self.__username = username
self.__orgname = orgname
@property
def username(self):
return self.__username
@property
def orgname(self):
return self.__orgname
@property
def is_org_user(self):
return self.__orgname is not None
def __eq__(self, other):
# NOTE: usernames are unique in the system
eq = (self.__username == other.__username)
if eq:
assert self.__orgname == other.__orgname, 'Found two users with same name and different orgs!'
return eq