'Test encryption and decryption in for several templates and resources.
Test encryption and decryption with set batch size of
templates and resources.'

def test_db_encrypt_decrypt_in_batches(self):

    tmpl1 = self._create_template()
    tmpl2 = self._create_template()
    stack = create_stack(self.ctx, tmpl1, self.user_creds)
    create_resource(self.ctx, stack, False, name='res1')
    stack2 = create_stack(self.ctx, tmpl2, self.user_creds)
    create_resource(self.ctx, stack2, False, name='res2')
    self._test_db_encrypt_decrypt(batch_size=1)
