aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_aai_line_of_business.py
diff options
context:
space:
mode:
authorKiran <kiran.mhetre@t-systems.com>2023-10-03 10:46:29 +0530
committerKiran <kiran.mhetre@t-systems.com>2023-10-05 19:44:33 +0530
commit9676519775c5cac40791fa02071301dbb7974c59 (patch)
tree33b67d4d947f293cf3ea04a6300e1fb2eb5f8971 /tests/test_aai_line_of_business.py
parent7f61bdf95398b461581a2b0aec043faa24c94ee2 (diff)
updated changes for delete functionality for entities and relationship between entities.
Issue-ID: TEST-407 Change-Id: Ie8abaee76af001260ae999d3e56e886b8f449517 Signed-off-by: Kiran <kiran.mhetre@t-systems.com>
Diffstat (limited to 'tests/test_aai_line_of_business.py')
-rw-r--r--tests/test_aai_line_of_business.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_aai_line_of_business.py b/tests/test_aai_line_of_business.py
index bd28c98..d7bc2d3 100644
--- a/tests/test_aai_line_of_business.py
+++ b/tests/test_aai_line_of_business.py
@@ -80,3 +80,14 @@ def test_line_of_business_count(mock_send_message_json):
def test_line_of_business_url():
line_of_business = LineOfBusiness(name="test-lob", resource_version="123")
assert line_of_business.name in line_of_business.url
+
+@mock.patch.object(LineOfBusiness, "send_message")
+def test_line_of_business_delete(mock_send_message):
+ line_of_business = LineOfBusiness(name="test_line_of_business",
+ resource_version="12468")
+ line_of_business.delete()
+ mock_send_message.assert_called_once_with(
+ "DELETE",
+ "Delete line of business",
+ f"{line_of_business.url}?resource-version={line_of_business.resource_version}"
+ )