view feed2twitter/tests/teste_tinyur.py @ 4:ba17f1f62e8f

AGPL and more details
author Walter Cruz <walter@waltercruz.com>
date Fri, 16 May 2008 16:47:38 -0300
parents rss2twitter/tests/teste_tinyur.py@ba8e2dfe2eaf
children
line wrap: on
line source

# feed2twitter
# Copyright (C) 2008 Walter Cruz <walter@waltercruz.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.

# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

from feed2twitter.tinyurl import tiny

def test_google():
    url = tiny('http://google.com')
    assert('http://tinyurl.com/2tx' == url)