@@ -75,19 +75,19 @@ def test_create_endpoint(self) -> None:
7575 assert_that (len (response .data .links ), greater_than (0 ))
7676 assert_that (response .data .links [0 ], instance_of (Link ))
7777 assert_that (response .data .links [0 ].href , starts_with ('http' ))
78- assert_that (response .data .links [0 ].rel , instance_of ( str ))
78+ assert_that (response .data .links [0 ].rel , equal_to ( 'endpoint' ))
7979
8080 assert_that (response .data .data , instance_of (CreateEndpointResponseData ))
81- assert_that (response .data .data .endpoint_id , instance_of ( str ))
82- assert_that (response .data .data .type , is_in (EndpointTypeEnum ))
83- assert_that (response .data .data .status , is_in (EndpointStatusEnum ))
81+ assert_that (response .data .data .endpoint_id , equal_to ( 'e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85' ))
82+ assert_that (response .data .data .type , equal_to (EndpointTypeEnum . WEBRTC ))
83+ assert_that (response .data .data .status , equal_to (EndpointStatusEnum . CONNECTED ))
8484 assert_that (response .data .data .creation_timestamp , instance_of (datetime ))
8585 assert_that (response .data .data .expiration_timestamp , instance_of (datetime ))
86- assert_that (response .data .data .token , instance_of ( str ))
87- assert_that (response .data .data .tag , instance_of ( str ))
86+ assert_that (response .data .data .token , equal_to ( 'xxxxx.yyyyy.zzzzz' ))
87+ assert_that (response .data .data .tag , equal_to ( 'my-tag' ))
8888 assert_that (response .data .data .devices , instance_of (list ))
8989
90- assert_that (response .data .errors , instance_of ( list ))
90+ assert_that (response .data .errors , equal_to ([] ))
9191
9292 def test_delete_endpoint (self ) -> None :
9393 """Test case for delete_endpoint
@@ -118,18 +118,18 @@ def test_get_endpoint(self) -> None:
118118 assert_that (len (response .data .links ), greater_than (0 ))
119119 assert_that (response .data .links [0 ], instance_of (Link ))
120120 assert_that (response .data .links [0 ].href , starts_with ('http' ))
121- assert_that (response .data .links [0 ].rel , instance_of ( str ))
121+ assert_that (response .data .links [0 ].rel , equal_to ( 'self' ))
122122
123123 assert_that (response .data .data , instance_of (Endpoint ))
124- assert_that (response .data .data .endpoint_id , instance_of ( str ))
125- assert_that (response .data .data .type , is_in (EndpointTypeEnum ))
126- assert_that (response .data .data .status , is_in (EndpointStatusEnum ))
124+ assert_that (response .data .data .endpoint_id , equal_to ( 'e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85' ))
125+ assert_that (response .data .data .type , equal_to (EndpointTypeEnum . WEBRTC ))
126+ assert_that (response .data .data .status , equal_to (EndpointStatusEnum . CONNECTED ))
127127 assert_that (response .data .data .creation_timestamp , instance_of (datetime ))
128128 assert_that (response .data .data .expiration_timestamp , instance_of (datetime ))
129- assert_that (response .data .data .tag , instance_of ( str ))
130- assert_that (response .data .data .devices , instance_of ( list ))
129+ assert_that (response .data .data .tag , equal_to ( 'my-tag' ))
130+ assert_that (response .data .data .devices , equal_to ([] ))
131131
132- assert_that (response .data .errors , instance_of ( list ))
132+ assert_that (response .data .errors , equal_to ([] ))
133133
134134 def test_list_endpoints (self ) -> None :
135135 """Test case for list_endpoints
@@ -147,18 +147,26 @@ def test_list_endpoints(self) -> None:
147147 assert_that (len (response .data .links ), greater_than (0 ))
148148 assert_that (response .data .links [0 ], instance_of (Link ))
149149 assert_that (response .data .links [0 ].href , starts_with ('http' ))
150- assert_that (response .data .links [0 ].rel , instance_of (str ))
150+ assert_that (response .data .links [0 ].rel , equal_to ('self' ))
151+
152+ assert_that (response .data .page .page_size , equal_to (2 ))
153+ assert_that (response .data .page .total_elements , equal_to (10 ))
154+ assert_that (response .data .page .total_pages , equal_to (5 ))
155+ assert_that (response .data .page .page_number , equal_to (0 ))
151156
152157 assert_that (response .data .data , instance_of (list ))
153- assert_that (len (response .data .data ), greater_than ( 0 ))
158+ assert_that (len (response .data .data ), equal_to ( 2 ))
154159 assert_that (response .data .data [0 ], instance_of (Endpoints ))
155- assert_that (response .data .data [0 ].endpoint_id , instance_of (str ))
156- assert_that (response .data .data [0 ].type , is_in (EndpointTypeEnum ))
157- assert_that (response .data .data [0 ].status , is_in (EndpointStatusEnum ))
160+ assert_that (response .data .data [0 ].endpoint_id , equal_to ('e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85' ))
161+ assert_that (response .data .data [0 ].type , equal_to (EndpointTypeEnum .WEBRTC ))
162+ assert_that (response .data .data [0 ].status , equal_to (EndpointStatusEnum .CONNECTED ))
163+ assert_that (response .data .data [0 ].tag , equal_to ('my-tag' ))
158164 assert_that (response .data .data [0 ].creation_timestamp , instance_of (datetime ))
159165 assert_that (response .data .data [0 ].expiration_timestamp , instance_of (datetime ))
166+ assert_that (response .data .data [1 ].endpoint_id , equal_to ('e-2cb0-4a07-b215-b22865662d85-15ac29a2-1331029c' ))
167+ assert_that (response .data .data [1 ].tag , equal_to ('my-tag' ))
160168
161- assert_that (response .data .errors , instance_of ( list ))
169+ assert_that (response .data .errors , equal_to ([] ))
162170
163171
164172if __name__ == '__main__' :
0 commit comments