def test_delete_container_with_non_existing_container(self): # Arrange container_name = self._get_container_reference() # Act with LogCaptured(self) as log_captured: deleted = self.bs.delete_container(container_name) log_as_str = log_captured.getvalue() self.assertTrue('ERROR' not in log_as_str) # Assert self.assertFalse(deleted)
def test_share_not_exists(self): # Arrange share_name = self._get_share_reference() # Act with LogCaptured(self) as log_captured: exists = self.fs.exists(share_name) log_as_str = log_captured.getvalue() self.assertTrue('ERROR' not in log_as_str) # Assert self.assertFalse(exists)
def test_delete_share_with_non_existing_share(self): # Arrange share_name = self._get_share_reference() # Act with LogCaptured(self) as log_captured: deleted = self.fs.delete_share(share_name) log_as_str = log_captured.getvalue() self.assertTrue('ERROR' not in log_as_str) # Assert self.assertFalse(deleted)
def test_share_snapshot_not_exists(self): # Arrange share_name = self._create_share() made_up_snapshot = '2017-07-19T06:53:46.0000000Z' # Act with LogCaptured(self) as log_captured: exists = self.fs.exists(share_name, snapshot=made_up_snapshot) log_as_str = log_captured.getvalue() self.assertTrue('ERROR' not in log_as_str) # Assert self.assertFalse(exists)