Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/p/o/pombola-HEAD/pombola/info/tests.py   pombola(Download)
from nose.plugins.attrib import attr
 
from .models import InfoPage
 
class InfoTest(TestCase):
    def test_get_absolute_url(self):
        page = InfoPage(slug="page", title="Page Title", content="blah", kind=InfoPage.KIND_PAGE)
        post = InfoPage(slug="post", title="Post Title", content="blah", kind=InfoPage.KIND_BLOG)
 
        self.assertEqual(page.get_absolute_url(), "/info/page")

src/p/o/pombola-HEAD/pombola/info/views.py   pombola(Download)
from django.conf import settings
 
from models import InfoPage, Category, Tag