Advertisement
Guest User

Untitled

a guest
Apr 20th, 2013
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.65 KB | None | 0 0
  1. """Tests for lists of SubscribedTasksPage view."""
  2.  
  3. from tests.test_utils import GCIDjangoTestCase
  4. from tests.profile_utils import GCIProfileHelper
  5.  
  6.  
  7. class SubscribedTasksPageTest(GCIDjangoTestCase):
  8.  
  9.   def setUp(self):
  10.     self.init()
  11.     self.profile_helper = GCIProfileHelper(self.gci, self.dev_test)
  12.     user = self.profile_helper.createUser()
  13.     self.url = "/gci/subscribed_tasks/%s/%s" % (
  14.                           self.gci.key().name(),
  15.                           user.link_id )
  16.                          
  17.   def testResponseOK(self):
  18.     self.profile_helper.createStudent()
  19.     response = self.get(self.url)
  20.     self.assertResponseOK(response)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement