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

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

src/d/j/django-oscar-HEAD/tests/integration/catalogue/category_tests.py   django-oscar(Download)
            create_from_breadcrumbs(trail)
 
        horror = models.Category.objects.get(name="Horror")
        programming = models.Category.objects.get(name="Programming")
        horror.move(programming)
 
        # Reload horror instance to pick up changes
        self.horror = models.Category.objects.get(name="Horror")
    def test_updates_subtree_names(self):
        teen = models.Category.objects.get(name="Teen")
        self.assertEqual('Books > Non-fiction > Horror > Teen',
                         teen.full_name)
        gothic = models.Category.objects.get(name="Gothic")

src/d/j/django-oscar-HEAD/tests/functional/dashboard/category_tests.py   django-oscar(Download)
 
        #updating
        f.instance = Category.objects.get(name='E')
        ref_node_pk = Category.objects.get(name='A').pk
        conflicting = f.is_slug_conflicting('E', ref_node_pk, 'first-child')
    def test_redirects_to_main_dashboard_after_creating_top_level_category(self):
        a = Category.objects.get(name='A')
        category_add = self.app.get(reverse('dashboard:catalogue-category-create'),
                                    user=self.staff)
        form = category_add.form
    def test_redirects_to_parent_list_after_creating_child_category(self):
        b = Category.objects.get(name='B')
        c = Category.objects.get(name='C')
        category_add = self.app.get(reverse('dashboard:catalogue-category-create'),
                                    user=self.staff)