@classmethod
    def saveCustomer(cls,customer):
        if customer.customerId in DB.customers:
            raise AlreadyExistsException("Customer",customer.customerId)
        else:
            DB.customers[customer.customerId] = customer
dataset/ETHPy150Open jacek99/corepost/corepost/test/rest_resource.py/DB.saveCustomer/original