Пример #1
0
 def test_accept_group_pk(self):
     self.assertEqual(
         hydroshare.group_from_id(self.group.pk),
         self.group,
         msg='lookup group id failed'
     )
Пример #2
0
 def test_accept_group_instance(self):
     self.assertEquals(
         hydroshare.group_from_id(self.group),
         self.group,
         msg='group did not match'
     )
Пример #3
0
 def test_accept_group_name(self):
     self.assertEqual(
         hydroshare.group_from_id(self.group.name),
         self.group,
         msg='lookup group name failed'
     )
Пример #4
0
 def test_accept_group_instance(self):
     self.assertEquals(
         hydroshare.group_from_id(self.group),
         self.group,
         msg='group passthrough failed'
     )