@@ -28,36 +28,9 @@ def tearDown(self):
2828
2929 def testEndpointDirectionEnum (self ):
3030 """Test EndpointDirectionEnum"""
31- # Test that the enum has the expected values
32- assert EndpointDirectionEnum .INBOUND == 'INBOUND'
33- assert EndpointDirectionEnum .OUTBOUND == 'OUTBOUND'
34- assert EndpointDirectionEnum .BIDIRECTIONAL == 'BIDIRECTIONAL'
35-
36- # Test enum instantiation
37- instance_inbound = EndpointDirectionEnum .INBOUND
38- assert instance_inbound is not None
39- assert isinstance (instance_inbound , EndpointDirectionEnum )
40-
41- instance_outbound = EndpointDirectionEnum .OUTBOUND
42- assert instance_outbound is not None
43- assert isinstance (instance_outbound , EndpointDirectionEnum )
44-
45- instance_bidirectional = EndpointDirectionEnum .BIDIRECTIONAL
46- assert instance_bidirectional is not None
47- assert isinstance (instance_bidirectional , EndpointDirectionEnum )
48-
49- # Test from_json
50- json_str_inbound = '"INBOUND"'
51- instance_from_json = EndpointDirectionEnum .from_json (json_str_inbound )
52- assert instance_from_json == EndpointDirectionEnum .INBOUND
53-
54- json_str_outbound = '"OUTBOUND"'
55- instance_from_json = EndpointDirectionEnum .from_json (json_str_outbound )
56- assert instance_from_json == EndpointDirectionEnum .OUTBOUND
57-
58- json_str_bidirectional = '"BIDIRECTIONAL"'
59- instance_from_json = EndpointDirectionEnum .from_json (json_str_bidirectional )
60- assert instance_from_json == EndpointDirectionEnum .BIDIRECTIONAL
31+ assert EndpointDirectionEnum ('INBOUND' ) == 'INBOUND'
32+ assert EndpointDirectionEnum ('OUTBOUND' ) == 'OUTBOUND'
33+ assert EndpointDirectionEnum ('BIDIRECTIONAL' ) == 'BIDIRECTIONAL'
6134
6235if __name__ == '__main__' :
6336 unittest .main ()
0 commit comments