Did I find the right examples for you? yes no

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

src/c/m/cmsplugin-googleplus-0.3.6b/cmsplugin_googleplus/cms_plugins.py   cmsplugin-googleplus(Download)
from .conf import GOOGLEPLUS_PLUGIN_DEVELOPER_KEY, GOOGLEPLUS_PLUGIN_CACHE_DURATION
from .googleplus import GooglePlusAPI
from .models import GooglePlusActivities
 
 

src/c/m/cmsplugin-googleplus-0.3.6b/cmsplugin_googleplus/tests/test_models.py   cmsplugin-googleplus(Download)
from django.test import TestCase
 
from ..models import GooglePlusActivities
 
__all__ = [
    def test_user_or_search(self):
        """Test a validator: you must enter a query or a google+ user id."""
        google_plus_activities = GooglePlusActivities()
        self.assertRaises(ValidationError, google_plus_activities.clean)
        google_plus_activities.query = 'test'
    def test_unicode(self):
        google_plus_activities = GooglePlusActivities(query='test')
        google_plus_activities.__unicode__()
        google_plus_activities.query = None
        google_plus_activities.google_user = 'test_user'