fixed test

This commit is contained in:
Hendrik Schneider 2018-01-20 00:56:28 +01:00
parent 1a451494fa
commit e3f9e49e7d

View File

@ -40,7 +40,7 @@ class CustomNameResourceInstance(APIView):
class CustomNameByVariableResourceInstance(APIView): class CustomNameByVariableResourceInstance(APIView):
view_name = "Foo" view_name = "Bar"
class ResourceViewSet(ModelViewSet): class ResourceViewSet(ModelViewSet):
@ -94,11 +94,11 @@ class BreadcrumbTests(TestCase):
] ]
def test_resource_instance_customnamebyvar_breadcrumbs(self): def test_resource_instance_customnamebyvar_breadcrumbs(self):
url = '/resource/customname' url = '/resource/customnamebyvar'
assert get_breadcrumbs(url) == [ assert get_breadcrumbs(url) == [
('Root', '/'), ('Root', '/'),
('Resource Root', '/resource/'), ('Resource Root', '/resource/'),
('Foo', '/resource/customname') ('Bar', '/resource/customnamebyvar')
] ]
def test_nested_resource_breadcrumbs(self): def test_nested_resource_breadcrumbs(self):