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

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

src/d/j/django-blog-HEAD/django_blog/tests.py   django-blog(Download)
    def test_add_category(self):
        c = Category.objects.create(title='Test Category',
                                    slug='test-category')
 
        r = self.client.get(reverse('blog_category_list'))
    def test_add_entry(self):
        a = Author.objects.get(user__username='testuser')
 
        c = Category.objects.create(title='Test Category',
                                    slug='test-category')
    def test_add_draft_entry(self):
        a = Author.objects.get(user__username='testuser')
 
        c = Category.objects.create(title='Test Category',
                                    slug='test-category')
    def test_add_hidden_entry(self):
        a = Author.objects.get(user__username='testuser')
 
        c = Category.objects.create(title='Test Category',
                                    slug='test-category')