File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,16 @@ def test_get(self):
48
48
self .assertEqual ('5241e88d-d384-4fd7-9c2f-648b5247efc5' , all_alerts [0 ].project_id )
49
49
self .assertEqual ('Default' , all_alerts [0 ].project_name )
50
50
51
+ def test_get_by_id (self ):
52
+ response_xml = read_xml_asset (GET_BY_ID_XML )
53
+ with requests_mock .mock () as m :
54
+ m .get (self .baseurl + '/5ea59b45-e497-5673-8809-bfe213236f75' , text = response_xml )
55
+ alert = self .server .data_alerts .get_by_id ('5ea59b45-e497-5673-8809-bfe213236f75' )
56
+
57
+ self .assertTrue (isinstance (alert .recipients , list ))
58
+ self .assertEqual (len (alert .recipients ), 1 )
59
+ self .assertEqual (alert .recipients [0 ], 'dd2239f6-ddf1-4107-981a-4cf94e415794' )
60
+
51
61
def test_update (self ):
52
62
response_xml = read_xml_asset (UPDATE_XML )
53
63
with requests_mock .mock () as m :
You can’t perform that action at this time.
0 commit comments