Mercurial > code > home > repos > href
view test_pagetitle.py @ 14:8a5feb8d383d
d2m takes an arbitrary username for the href side
Ignore-this: 87a0d77bfa9c579ffbfe73146bca03e8
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Sat, 16 Mar 2013 23:50:36 -0700 |
parents | f8c4c7ce5f4a |
children |
line wrap: on
line source
import unittest from pagetitle import PageTitle class TestPageTitle(unittest.TestCase): def testLoads(self): p = PageTitle({'pageTitle':None}) t = p.getPageTitle("http://bigasterisk.com/") self.assertEqual(t, "Drew Perttula")