@@ -95,6 +95,45 @@ def test_can_accept_classmethod(self, request_mock):
95
95
)
96
96
assert isinstance (resource , stripe .Quote )
97
97
98
+ def test_can_list_line_items (self , request_mock ):
99
+ resources = stripe .Quote .list_line_items (TEST_RESOURCE_ID )
100
+ request_mock .assert_requested (
101
+ "get" , "/v1/quotes/%s/line_items" % TEST_RESOURCE_ID
102
+ )
103
+ assert isinstance (resources .data , list )
104
+ assert isinstance (resources .data [0 ], stripe .LineItem )
105
+
106
+ def test_can_list_line_items_classmethod (self , request_mock ):
107
+ resources = stripe .Quote .list_line_items (TEST_RESOURCE_ID )
108
+ request_mock .assert_requested (
109
+ "get" , "/v1/quotes/%s/line_items" % TEST_RESOURCE_ID
110
+ )
111
+ assert isinstance (resources .data , list )
112
+ assert isinstance (resources .data [0 ], stripe .LineItem )
113
+
114
+ def test_can_list_computed_upfront_line_items (self , request_mock ):
115
+ resources = stripe .Quote .list_computed_upfront_line_items (
116
+ TEST_RESOURCE_ID
117
+ )
118
+ request_mock .assert_requested (
119
+ "get" ,
120
+ "/v1/quotes/%s/computed_upfront_line_items" % TEST_RESOURCE_ID ,
121
+ )
122
+ assert isinstance (resources .data , list )
123
+ assert isinstance (resources .data [0 ], stripe .LineItem )
124
+
125
+ def test_can_list_computed_upfront_line_items_classmethod (
126
+ self , request_mock
127
+ ):
128
+ resources = stripe .Quote .list_computed_upfront_line_items (
129
+ TEST_RESOURCE_ID
130
+ )
131
+ request_mock .assert_requested (
132
+ "get" ,
133
+ "/v1/quotes/%s/computed_upfront_line_items" % TEST_RESOURCE_ID ,
134
+ )
135
+ assert isinstance (resources .data [0 ], stripe .LineItem )
136
+
98
137
def test_can_pdf (self , setup_upload_api_base , request_mock ):
99
138
resource = stripe .Quote .retrieve (TEST_RESOURCE_ID )
100
139
stream , _ = resource .pdf ()
0 commit comments