def METHOD_NAME(self):
    """Test that storing inside a transaction is correctly dealt with."""
    user1 = orm.User('user_store@email.com')
    with self.backend.transaction():
        user1.store()
    # the following shouldn't raise
    orm.User.collection.get(email='user_store@email.com')
    user2 = orm.User('user_store_fail@email.com')
    try:
        with self.backend.transaction():
            user2.store()
            raise RuntimeError
    except RuntimeError:
        pass
    with pytest.raises(exceptions.NotExistent):
        orm.User.collection.get(email='user_store_fail@email.com')