test.py
from django.test import TestCase
from django.urls import resolve
from snippets.views import snippet_new, snippet_edit, snippet_detail
class CreateSnippetTest(TestCase):
def test_should_resolve_snippet_new(self):
found = resolve(“/snippets/new/”)
self.assertEqual(snippet_new, found.func)
class SnippetDetailTest(TestCase):
def test_should_resolve_snippet_detail(self):
found = resolve(“/snippets/1/”)
self.assertEqual(snippet_detail, found.func)
class EditSnippetTest(TestCase):
def test_should_resolve_snippet_edit(self):
found = resolve(“/snippets/1/edit/”)
self.assertEqual(snippet_edit, found.func)
[url=https://ivermectin.download/]can you buy stromectol over the counter[/url]
[url=https://valtrex.monster/]valtrex uk over the counter[/url]
[url=https://propecia.today/]propecia prices in canada[/url]
[url=https://amoxicillin.monster/]how much is augmentin[/url]
[url=http://drugstore.monster/]maple leaf pharmacy in canada[/url]