from django.core.urlresolvers import resolve
from xpserver_web.views import main


def test_root_resolves_to_hello_world():
    found = resolve('/')
    assert found.func == main


from django.core.urlresolvers import resolve
from xpserver_web.views import main, register


def test_root_resolves_to_main():
    found = resolve('/')
    assert found.func == main


def test_register_resolves_to_main():
    found = resolve('/register/')
    assert found.func == register

Add unit test for register
Add unit test for register

  from django.core.urlresolvers import resolve
- from xpserver_web.views import main
+ from xpserver_web.views import main, register
  
  
- def test_root_resolves_to_hello_world():
+ def test_root_resolves_to_main():
      found = resolve('/')
      assert found.func == main
  
  
+ def test_register_resolves_to_main():
+     found = resolve('/register/')
+     assert found.func == register
+ 
Add unit test for register
## Code Before:
from django.core.urlresolvers import resolve
from xpserver_web.views import main


def test_root_resolves_to_hello_world():
    found = resolve('/')
    assert found.func == main


## Instruction:
Add unit test for register
## Code After:
from django.core.urlresolvers import resolve
from xpserver_web.views import main, register


def test_root_resolves_to_main():
    found = resolve('/')
    assert found.func == main


def test_register_resolves_to_main():
    found = resolve('/register/')
    assert found.func == register
