def test_remove_failure(self):
responses.add(
responses.DELETE,
'http://localhost:9999/rest/Content/1',
content_type='application/json',
body="Could not delete",
status=400
)
slims = Slims("testSlims", "http://localhost:9999", "admin", "admin")
record = Record({"pk": 1,
"tableName": "Content",
"columns": []},
slims.slims_api)
self.assertRaises(Exception, record.remove)
评论列表
文章目录