Example #1
0
    def test_delete(self):
        """
        Test for delete a container, or delete an object from a container.
        """
        with patch.object(swift, "_auth", MagicMock()):
            self.assertTrue(swift.delete("mycontainer"))

            self.assertTrue(swift.delete("mycontainer", path="myfile.png"))
Example #2
0
    def test_delete(self):
        '''
        Test for delete a container, or delete an object from a container.
        '''
        with patch.object(swift, '_auth', MagicMock()):
            self.assertTrue(swift.delete('mycontainer'))

            self.assertTrue(swift.delete('mycontainer', path='myfile.png'))
Example #3
0
    def test_delete(self):
        '''
        Test for delete a container, or delete an object from a container.
        '''
        with patch.object(swift, '_auth', MagicMock()):
            self.assertTrue(swift.delete('mycontainer'))

            self.assertTrue(swift.delete('mycontainer', path='myfile.png'))