def test_protosaveprotoobj_prototype_viewcode(self): self.request.POST["viewCode"] = "prototype.ProtoTable.t-model-t-other-entity" # prototype = True response = json.loads(protoSaveProtoObj(self.request).content) self.assertFalse(response["success"])
def test_protosaveprotoobj_custom_viewcode(self): response = json.loads(protoSaveProtoObj(self.request).content) self.assertTrue(response["success"])
def test_protosaveprotoobj_with_method_not_post(self): self.request.method = "GET" response = json.loads(protoSaveProtoObj(self.request).content) self.assertFalse(response["success"])
def test_protosaveprotoobj_prototype_viewcode(self): self.request.POST[ 'viewCode'] = 'prototype.ProtoTable.t-model-t-other-entity' # prototype = True response = json.loads(protoSaveProtoObj(self.request).content) self.assertFalse(response['success'])
def test_protosaveprotoobj_custom_viewcode(self): response = json.loads(protoSaveProtoObj(self.request).content) self.assertTrue(response['success'])
def test_protosaveprotoobj_with_method_not_post(self): self.request.method = 'GET' response = json.loads(protoSaveProtoObj(self.request).content) self.assertFalse(response['success'])