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

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

src/d/j/django-oscar-HEAD/tests/functional/dashboard/category_tests.py   django-oscar(Download)
        #root categories
        ref_node_pk = Category.objects.get(name='A').pk
        conflicting = f.is_slug_conflicting('A', ref_node_pk, 'right')
        self.assertEqual(conflicting, True)
 
        conflicting = f.is_slug_conflicting('A', None, 'left')
        self.assertEqual(conflicting, True)
 
        conflicting = f.is_slug_conflicting('A', None, 'first-child')
        self.assertEqual(conflicting, True)
 
        conflicting = f.is_slug_conflicting('B', None, 'left')
        self.assertEqual(conflicting, False)
 
        #subcategories
        ref_node_pk = Category.objects.get(name='C').pk
        conflicting = f.is_slug_conflicting('D', ref_node_pk, 'left')