|
11 | 11 | # under the License. |
12 | 12 | # |
13 | 13 |
|
| 14 | +import datetime |
14 | 15 | from unittest import mock |
15 | 16 |
|
16 | 17 | from openstackclient.compute.v2 import usage as usage_cmds |
@@ -94,8 +95,8 @@ def test_usage_list_with_options(self): |
94 | 95 |
|
95 | 96 | self.projects_mock.list.assert_called_with() |
96 | 97 | self.compute_sdk_client.usages.assert_called_with( |
97 | | - start='2016-11-11T00:00:00', |
98 | | - end='2016-12-20T00:00:00', |
| 98 | + start=datetime.datetime(2016, 11, 11, 0, 0), |
| 99 | + end=datetime.datetime(2016, 12, 20, 0, 0), |
99 | 100 | detailed=True, |
100 | 101 | ) |
101 | 102 |
|
@@ -190,8 +191,8 @@ def test_usage_show_with_options(self): |
190 | 191 |
|
191 | 192 | self.compute_sdk_client.get_usage.assert_called_with( |
192 | 193 | project=self.project.id, |
193 | | - start='2016-11-11T00:00:00', |
194 | | - end='2016-12-20T00:00:00', |
| 194 | + start=datetime.datetime(2016, 11, 11, 0, 0), |
| 195 | + end=datetime.datetime(2016, 12, 20, 0, 0), |
195 | 196 | ) |
196 | 197 |
|
197 | 198 | self.assertEqual(self.columns, columns) |
|
0 commit comments