powervc-driver/nova-powervc/test/fake_ctx.py
Le Tian Ren bb7da09624 Fix copyright headline in the source files
Change-Id: Ie1b0dac8a8ec1e6d02217fe03159c78a69f6dc5d
Closes-Bug: #1317657
2014-05-09 13:05:20 +08:00

23 lines
412 B
Python

# Copyright 2013 IBM Corp.
"""
The class FakeCTX is used to produce the fake data of CTX
"""
class FakeCTX():
user_id = None
project_id = None
def __init__(self):
self.user_id = "testuser"
self.project_id = "testproject"
def update(self, **update):
if not update:
self.user_id = update['user_id']
self.project_id = update['project_id']