Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/d/j/django-clickbank-0.2.8/django_clickbank/tests/test_views.py   django-clickbank(Download)
from django.core.urlresolvers import reverse
from django.test import TestCase, Client
from django.test.utils import override_settings
from django_clickbank.models import Post, Notification
from django_clickbank.tests.posts import TEST_POSTS, SECRET_KEY
	def test_ipn(self):
		client = Client()
		import copy
		test_posts = copy.deepcopy(TEST_POSTS)
		for i in range(0, 25):

src/d/j/django-clickbank-0.2.8/django_clickbank/tests/test_helpers.py   django-clickbank(Download)
from django.test import TestCase
from django_clickbank.tests.posts import TEST_POSTS, SECRET_KEY
from django_clickbank import settings
from django_clickbank.util.helpers import remap_post
from django_clickbank.util.helpers import generate_post
	def test_ipn_verify(self):
		from django_clickbank.util.helpers import verify_secret as verify
 
		for post in TEST_POSTS:
			self.assertTrue(verify(post, SECRET_KEY))
 
	def test_remap_post(self):
 
		import copy
		test_posts = copy.deepcopy(TEST_POSTS)
			test_posts.append(generate_post(SECRET_KEY))
 
		for post in TEST_POSTS:
			self.assertGreater(len(remap_post(post)), 30)