Did I find the right examples for you? yes no

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

src/h/u/hubplus-HEAD/apps/plus_links/tests.py   hubplus(Download)
 
from django.db import models
from django.contrib.auth.models import *
 
from models import Service, Link, get_links_for, ListOfLinks
        picassa_pics = Link(text="Photos", url="http://www.picassa.com/ropix", owner=p)
 
        ll = ListOfLinks([home,flickr_pics,picassa_pics], p)
        self.assertEquals(len(ll), 3)
        self.assertEquals(ll[0], home)