def test_that_when_deleting_a_trail_succeeds_the_delete_trail_method_returns_true( self): ''' tests True trail deleted. ''' result = boto_cloudtrail.delete(Name='testtrail', **conn_parameters) self.assertTrue(result['deleted'])
def test_that_when_deleting_a_trail_fails_the_delete_trail_method_returns_false(self): ''' tests False trail not deleted. ''' self.conn.delete_trail.side_effect = ClientError(error_content, 'delete_trail') result = boto_cloudtrail.delete(Name='testtrail', **conn_parameters) self.assertFalse(result['deleted'])
def test_that_when_deleting_a_trail_succeeds_the_delete_trail_method_returns_true( self, ): """ tests True trail deleted. """ result = boto_cloudtrail.delete(Name="testtrail", **conn_parameters) self.assertTrue(result["deleted"])
def test_that_when_deleting_a_trail_succeeds_the_delete_trail_method_returns_true(self): ''' tests True trail deleted. ''' result = boto_cloudtrail.delete(Name='testtrail', **conn_parameters) self.assertTrue(result['deleted'])
def test_that_when_deleting_a_trail_fails_the_delete_trail_method_returns_false( self, ): """ tests False trail not deleted. """ self.conn.delete_trail.side_effect = ClientError(error_content, "delete_trail") result = boto_cloudtrail.delete(Name="testtrail", **conn_parameters) self.assertFalse(result["deleted"])