from Request.request import Request
from Networking.statuscodes import StatusCodes as CODE
from Request.requesterrors import NotFound, ServerError, Unauthorised, MethodNotAllowed

class Jsontest(Request):

	def __init__(self,):
		super(Jsontest, self).__init__()

	def _doGet(self):

		if self.user is None:
			rdata = {}
		else:
			rdata = self.user.dict()
		rdata["error_code"] = 200
		rdata['message'] = "Test Call completed successfully"
		return self._response(rdata, CODE.OK)