@@ -25,36 +25,37 @@ def test_bound_datacenter_init(self, datacenter_response):
2525 assert bound_datacenter .location .name == "fsn1"
2626 assert bound_datacenter .location .complete is True
2727
28- assert isinstance (bound_datacenter .server_types , DatacenterServerTypes )
29- assert len (bound_datacenter .server_types .supported ) == 3
30- assert bound_datacenter .server_types .supported [0 ].id == 1
31- assert bound_datacenter .server_types .supported [0 ].complete is False
32- assert bound_datacenter .server_types .supported [1 ].id == 2
33- assert bound_datacenter .server_types .supported [1 ].complete is False
34- assert bound_datacenter .server_types .supported [2 ].id == 3
35- assert bound_datacenter .server_types .supported [2 ].complete is False
36-
37- assert len (bound_datacenter .server_types .available ) == 3
38- assert bound_datacenter .server_types .available [0 ].id == 1
39- assert bound_datacenter .server_types .available [0 ].complete is False
40- assert bound_datacenter .server_types .available [1 ].id == 2
41- assert bound_datacenter .server_types .available [1 ].complete is False
42- assert bound_datacenter .server_types .available [2 ].id == 3
43- assert bound_datacenter .server_types .available [2 ].complete is False
44-
45- assert len (bound_datacenter .server_types .available_for_migration ) == 3
46- assert bound_datacenter .server_types .available_for_migration [0 ].id == 1
47- assert (
48- bound_datacenter .server_types .available_for_migration [0 ].complete is False
49- )
50- assert bound_datacenter .server_types .available_for_migration [1 ].id == 2
51- assert (
52- bound_datacenter .server_types .available_for_migration [1 ].complete is False
53- )
54- assert bound_datacenter .server_types .available_for_migration [2 ].id == 3
55- assert (
56- bound_datacenter .server_types .available_for_migration [2 ].complete is False
57- )
28+ with pytest .deprecated_call ():
29+ assert isinstance (bound_datacenter .server_types , DatacenterServerTypes )
30+ assert len (bound_datacenter .server_types .supported ) == 3
31+ assert bound_datacenter .server_types .supported [0 ].id == 1
32+ assert bound_datacenter .server_types .supported [0 ].complete is False
33+ assert bound_datacenter .server_types .supported [1 ].id == 2
34+ assert bound_datacenter .server_types .supported [1 ].complete is False
35+ assert bound_datacenter .server_types .supported [2 ].id == 3
36+ assert bound_datacenter .server_types .supported [2 ].complete is False
37+
38+ assert len (bound_datacenter .server_types .available ) == 3
39+ assert bound_datacenter .server_types .available [0 ].id == 1
40+ assert bound_datacenter .server_types .available [0 ].complete is False
41+ assert bound_datacenter .server_types .available [1 ].id == 2
42+ assert bound_datacenter .server_types .available [1 ].complete is False
43+ assert bound_datacenter .server_types .available [2 ].id == 3
44+ assert bound_datacenter .server_types .available [2 ].complete is False
45+
46+ assert len (bound_datacenter .server_types .available_for_migration ) == 3
47+ assert bound_datacenter .server_types .available_for_migration [0 ].id == 1
48+ assert (
49+ bound_datacenter .server_types .available_for_migration [0 ].complete is False
50+ )
51+ assert bound_datacenter .server_types .available_for_migration [1 ].id == 2
52+ assert (
53+ bound_datacenter .server_types .available_for_migration [1 ].complete is False
54+ )
55+ assert bound_datacenter .server_types .available_for_migration [2 ].id == 3
56+ assert (
57+ bound_datacenter .server_types .available_for_migration [2 ].complete is False
58+ )
5859
5960
6061class TestDatacentersClient :
0 commit comments