Did I find the right examples for you? yes no

All Samples(42)  |  Call(30)  |  Derive(0)  |  Import(12)

src/a/p/appscale-HEAD/AppServer/lib/django-1.5/tests/regressiontests/model_permalink/tests.py   appscale(Download)
from __future__ import absolute_import
 
from django.test import TestCase
 
from .models import Guitarist
    def test_permalink(self):
        g = Guitarist(name='Adrien Moignard', slug='adrienmoignard')
        self.assertEqual(g.url(), '/guitarists/adrienmoignard/')
 
    def test_wrapped_docstring(self):
        "Methods using the @permalink decorator retain their docstring."
        g = Guitarist(name='Adrien Moignard', slug='adrienmoignard')
        from other decorators
        """
        g = Guitarist(name='Adrien Moignard', slug='adrienmoignard')
        self.assertTrue(hasattr(g.url_with_attribute, 'attribute'))
        self.assertEqual(g.url_with_attribute.attribute, 'value')

src/g/o/google-app-engine-HEAD/lib/django-1.5/tests/regressiontests/model_permalink/tests.py   google-app-engine(Download)
from __future__ import absolute_import
 
from django.test import TestCase
 
from .models import Guitarist
    def test_permalink(self):
        g = Guitarist(name='Adrien Moignard', slug='adrienmoignard')
        self.assertEqual(g.url(), '/guitarists/adrienmoignard/')
 
    def test_wrapped_docstring(self):
        "Methods using the @permalink decorator retain their docstring."
        g = Guitarist(name='Adrien Moignard', slug='adrienmoignard')
        from other decorators
        """
        g = Guitarist(name='Adrien Moignard', slug='adrienmoignard')
        self.assertTrue(hasattr(g.url_with_attribute, 'attribute'))
        self.assertEqual(g.url_with_attribute.attribute, 'value')

src/a/p/appscale-HEAD/AppServer/lib/django-1.4/tests/regressiontests/model_permalink/tests.py   appscale(Download)
from __future__ import absolute_import
 
from django.test import TestCase
 
from .models import Guitarist
    def test_permalink(self):
        g = Guitarist(name='Adrien Moignard', slug='adrienmoignard')
        self.assertEqual(g.url(), '/guitarists/adrienmoignard/')
 
    def test_wrapped_docstring(self):
        "Methods using the @permalink decorator retain their docstring."
        g = Guitarist(name='Adrien Moignard', slug='adrienmoignard')

src/d/e/Decode-Django-HEAD/Django-1.5.1/tests/regressiontests/model_permalink/tests.py   Decode-Django(Download)
from __future__ import absolute_import
 
from django.test import TestCase
 
from .models import Guitarist
    def test_permalink(self):
        g = Guitarist(name='Adrien Moignard', slug='adrienmoignard')
        self.assertEqual(g.url(), '/guitarists/adrienmoignard/')
 
    def test_wrapped_docstring(self):
        "Methods using the @permalink decorator retain their docstring."
        g = Guitarist(name='Adrien Moignard', slug='adrienmoignard')
        from other decorators
        """
        g = Guitarist(name='Adrien Moignard', slug='adrienmoignard')
        self.assertTrue(hasattr(g.url_with_attribute, 'attribute'))
        self.assertEqual(g.url_with_attribute.attribute, 'value')

src/c/l/CleanAdminDjango-1.5.3.1/tests/regressiontests/model_permalink/tests.py   CleanAdminDjango(Download)
from __future__ import absolute_import
 
from django.test import TestCase
 
from .models import Guitarist
    def test_permalink(self):
        g = Guitarist(name='Adrien Moignard', slug='adrienmoignard')
        self.assertEqual(g.url(), '/guitarists/adrienmoignard/')
 
    def test_wrapped_docstring(self):
        "Methods using the @permalink decorator retain their docstring."
        g = Guitarist(name='Adrien Moignard', slug='adrienmoignard')
        from other decorators
        """
        g = Guitarist(name='Adrien Moignard', slug='adrienmoignard')
        self.assertTrue(hasattr(g.url_with_attribute, 'attribute'))
        self.assertEqual(g.url_with_attribute.attribute, 'value')

src/g/o/google-app-engine-HEAD/lib/django-1.4/tests/regressiontests/model_permalink/tests.py   google-app-engine(Download)
from __future__ import absolute_import
 
from django.test import TestCase
 
from .models import Guitarist
    def test_permalink(self):
        g = Guitarist(name='Adrien Moignard', slug='adrienmoignard')
        self.assertEqual(g.url(), '/guitarists/adrienmoignard/')
 
    def test_wrapped_docstring(self):
        "Methods using the @permalink decorator retain their docstring."
        g = Guitarist(name='Adrien Moignard', slug='adrienmoignard')

src/d/j/Django-1.6.4/tests/model_permalink/tests.py   Django(Download)
from __future__ import absolute_import
 
from django.test import TestCase
 
from .models import Guitarist
    def test_permalink(self):
        g = Guitarist(name='Adrien Moignard', slug='adrienmoignard')
        self.assertEqual(g.url(), '/guitarists/adrienmoignard/')
 
    def test_wrapped_docstring(self):
        "Methods using the @permalink decorator retain their docstring."
        g = Guitarist(name='Adrien Moignard', slug='adrienmoignard')
        from other decorators
        """
        g = Guitarist(name='Adrien Moignard', slug='adrienmoignard')
        self.assertTrue(hasattr(g.url_with_attribute, 'attribute'))
        self.assertEqual(g.url_with_attribute.attribute, 'value')

src/u/p/UP-Manager-0.0.0/tests/model_permalink/tests.py   UP-Manager(Download)
from __future__ import absolute_import
 
from django.test import TestCase
 
from .models import Guitarist
    def test_permalink(self):
        g = Guitarist(name='Adrien Moignard', slug='adrienmoignard')
        self.assertEqual(g.url(), '/guitarists/adrienmoignard/')
 
    def test_wrapped_docstring(self):
        "Methods using the @permalink decorator retain their docstring."
        g = Guitarist(name='Adrien Moignard', slug='adrienmoignard')
        from other decorators
        """
        g = Guitarist(name='Adrien Moignard', slug='adrienmoignard')
        self.assertTrue(hasattr(g.url_with_attribute, 'attribute'))
        self.assertEqual(g.url_with_attribute.attribute, 'value')

src/h/u/hue-HEAD/desktop/core/ext-py/Django-1.4.5/tests/regressiontests/model_permalink/tests.py   hue(Download)
from __future__ import absolute_import
 
from django.test import TestCase
 
from .models import Guitarist
    def test_permalink(self):
        g = Guitarist(name='Adrien Moignard', slug='adrienmoignard')
        self.assertEqual(g.url(), '/guitarists/adrienmoignard/')
 
    def test_wrapped_docstring(self):
        "Methods using the @permalink decorator retain their docstring."
        g = Guitarist(name='Adrien Moignard', slug='adrienmoignard')

src/g/o/googleappengine-python-HEAD/lib/django-1.4/tests/regressiontests/model_permalink/tests.py   googleappengine-python(Download)
from __future__ import absolute_import
 
from django.test import TestCase
 
from .models import Guitarist
    def test_permalink(self):
        g = Guitarist(name='Adrien Moignard', slug='adrienmoignard')
        self.assertEqual(g.url(), '/guitarists/adrienmoignard/')
 
    def test_wrapped_docstring(self):
        "Methods using the @permalink decorator retain their docstring."
        g = Guitarist(name='Adrien Moignard', slug='adrienmoignard')

  1 | 2  Next