예제 #1
0
 def test_basic(self):
     sot = project.UserProject()
     self.assertEqual('project', sot.resource_key)
     self.assertEqual('projects', sot.resources_key)
     self.assertEqual('/users/%(user_id)s/projects', sot.base_path)
     self.assertFalse(sot.allow_create)
     self.assertFalse(sot.allow_fetch)
     self.assertFalse(sot.allow_commit)
     self.assertFalse(sot.allow_delete)
     self.assertTrue(sot.allow_list)
예제 #2
0
 def test_basic(self):
     sot = project.UserProject()
     self.assertEqual('project', sot.resource_key)
     self.assertEqual('projects', sot.resources_key)
     self.assertEqual('/users/%(user_id)s/projects', sot.base_path)
     self.assertEqual('identity', sot.service.service_type)
     self.assertFalse(sot.allow_create)
     self.assertFalse(sot.allow_get)
     self.assertFalse(sot.allow_update)
     self.assertFalse(sot.allow_delete)
     self.assertTrue(sot.allow_list)