from django.core.urlresolvers import resolve
from django.test import TestCase
from users.views import join_us


class HomePageTest(TestCase):

    # home화면에 들어가자마자 회원가입을 유도하는 페이지 호출
    # 차후 리펙토링 예정
    def test_root_rul_resolves_to_Join_Us_view(self):
        found = resolve('/')
        self.assertEqual(found.func, join_us)

@@ -80,13 +80,48 @@
 rom 
-users
+django.http import HttpRequest%0A%0Afrom wef
 .vie
@@ -130,23 +130,20 @@
  import 
-join_us
+home
 %0A%0A%0Aclass
@@ -189,46 +189,26 @@
  %EB%93%A4%EC%96%B4%EA%B0%80
-%EC%9E%90%EB%A7%88%EC%9E%90 %ED%9A%8C%EC%9B%90%EA%B0%80%EC%9E%85%EC%9D%84 %EC%9C%A0%EB%8F%84%ED%95%98%EB%8A%94 %ED%8E%98%EC%9D%B4%EC%A7%80 %ED%98%B8%EC%B6%9C%0A    # %EC%B0%A8%ED%9B%84 %EB%A6%AC%ED%8E%99%ED%86%A0%EB%A7%81 %EC%98%88%EC%A0%95
+%EB%A9%B4 home view%EB%A5%BC %ED%98%B8%EC%B6%9C%ED%95%9C%EB%8B%A4.
 %0A   
@@ -226,10 +226,10 @@
 oot_
-r
 u
+r
 l_re
@@ -242,15 +242,12 @@
 _to_
-Join_Us
+home
 _vie
@@ -325,13 +325,453 @@
 nc, 
-join_us
+home)%0A%0A    # home url%EC%9D%84 %EC%9E%85%EB%A0%A5%ED%95%98%EB%A9%B4 home.html%EC%9D%84 %EB%9E%9C%EB%8D%94%EB%A7%81%ED%95%9C%EB%8B%A4.%0A    def test_home_page_renders_home_template(self):%0A        response = self.client.get('/')%0A        self.assertTemplateUsed(response, 'home.html')%0A%0A#    def test_Join_Us_should_return_correct_html(self):%0A#        request = HttpRequest()%0A#        response = join_us(request)%0A#        self.assertTrue(response.content.startswith(b'%3Chtml%3E'))%0A#        self.assertTrue(response.content.endswith(b'%3C/html%3E')
 )%0A

update : add HomePageTest