Example #1
0
	def test_get_ok_status_and_title(self):
		request = self.rf.get(self.fake_path)
		response = MainPage.as_view()(request)
		self.assertEqual(response.status_code, 200)
		self.assertIn('Devportfolio', response.content)
Example #2
0
from django.conf.urls import url
from portfolio.views import MainPage
from django.conf import settings
from django.conf.urls.static import static

urlpatterns = [url(r"^$", MainPage.as_view(), name="main")]