"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "openstack_dashboard/test/unit/api/test_swift.py" between
horizon-18.6.2.tar.gz and horizon-18.6.3.tar.gz

About: OpenStack Horizon (Optional Service: Dashboard) provides a web-based self-service portal to interact with underlying OpenStack services, such as launching an instance, assigning IP addresses and configuring access controls.
The "Victoria" series (maintained release).

test_swift.py  (horizon-18.6.2):test_swift.py  (horizon-18.6.3)
skipping to change at line 46 skipping to change at line 46
self.assertFalse(more) self.assertFalse(more)
swift_api.get_account.assert_called_once_with( swift_api.get_account.assert_called_once_with(
limit=1001, marker=None, prefix=None, full_listing=True) limit=1001, marker=None, prefix=None, full_listing=True)
def test_swift_get_container_with_data(self, mock_swiftclient): def test_swift_get_container_with_data(self, mock_swiftclient):
container = self.containers.first() container = self.containers.first()
objects = self.objects.list() objects = self.objects.list()
swift_api = mock_swiftclient.return_value swift_api = mock_swiftclient.return_value
swift_api.get_object.return_value = (container, objects) swift_api.get_object.return_value = (container, objects)
cont = api.swift.swift_get_container(self.request, container.name) cont = api.swift.swift_get_container(self.request, container.name,
with_data=True)
self.assertEqual(container.name, cont.name) self.assertEqual(container.name, cont.name)
self.assertEqual(len(objects), len(cont.data)) self.assertEqual(len(objects), len(cont.data))
swift_api.get_object.assert_called_once_with(container.name, "") swift_api.get_object.assert_called_once_with(container.name, "")
def test_swift_get_container_without_data(self, mock_swiftclient): def test_swift_get_container_without_data(self, mock_swiftclient):
container = self.containers.first() container = self.containers.first()
swift_api = mock_swiftclient.return_value swift_api = mock_swiftclient.return_value
swift_api.head_container.return_value = container swift_api.head_container.return_value = container
 End of changes. 1 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)