From 9910aca89b3b1289023319c05411aa8a0bbcddfd Mon Sep 17 00:00:00 2001 From: Gustavo Bernardo Date: Tue, 11 Oct 2016 12:44:50 -0300 Subject: [PATCH] Improving create link test [Issue #123] --- links/tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/links/tests.py b/links/tests.py index e7a5c8a..493214e 100644 --- a/links/tests.py +++ b/links/tests.py @@ -24,9 +24,10 @@ class LinkTestCase(TestCase): self.link = Link.objects.create( name = 'testinglink', description = 'testdescription', - link = 'teste.com' + link = 'teste' ) self.assertEqual(Link.objects.all().count(),links+1) #After creating one link, if OK, the link was created successfully. + self.assertTemplateUsed(template_name = 'links/link_modal.html') # def test_update_link(): # pass # def test_delete_link(): -- libgit2 0.21.2