Did I find the right examples for you? yes no

All Samples(11)  |  Call(2)  |  Derive(0)  |  Import(9)

src/b/a/batter-HEAD/batter/music/tests/test_models.py   batter(Download)
from django.test import TestCase
 
from ..models import Artist, Master, Release
 
 
    def test_absolute_url(self):
        # Just poke it
        master = Master(name="Black Sheep Boy", slug="Black-Sheep-Boy")
        master.save()
        master.get_absolute_url()

src/b/a/batter-HEAD/batter/music/tests/test_views.py   batter(Download)
 
from batter.test import LoggedInTestCase
from ..models import Artist, Master, Release
 
 
    def setUp(self):
        self.artist = Artist(name="Okkervil River",
                             slug="Okkervil-River")
        self.artist.save()
        self.master = Master(name="Black Sheep Boy",

src/b/a/batter-HEAD/batter/music/views/music.py   batter(Download)
from ..models import Artist, Master
from .generic import EnforcingSlugDetailView
 
 
class ArtistView(EnforcingSlugDetailView):

src/b/a/batter-HEAD/batter/music/search_indexes.py   batter(Download)
from haystack import indexes
 
from .models import Artist, Master
 
 

src/d/j/django-dynamic-choices-HEAD/dynamic_choices/tests/__init__.py   django-dynamic-choices(Download)
 
from .admin import PuppetAdmin
from .models import Master, Puppet, ALIGNMENT_EVIL, ALIGNMENT_GOOD
 
 

src/d/j/django-dynamic-choices-HEAD/dynamic_choices/tests/admin.py   django-dynamic-choices(Download)
 
from .forms import UserDefinedForm
from .models import Puppet, Master
 
 

src/b/a/batter-HEAD/batter/music/tests/test_search_indexes.py   batter(Download)
from __future__ import absolute_import, unicode_literals
 
from django.test import TestCase
 
from ..models import Artist, Master

src/d/j/django-dynamic-choices-0.3.0/dynamic_choices/tests/__init__.py   django-dynamic-choices(Download)
 
from .admin import PuppetAdmin
from .models import Master, Puppet, ALIGNMENT_EVIL, ALIGNMENT_GOOD
 
 

src/d/j/django-dynamic-choices-0.3.0/dynamic_choices/tests/admin.py   django-dynamic-choices(Download)
 
from .forms import UserDefinedForm
from .models import Puppet, Master