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"))
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'))