예제 #1
0
    def test_should_add_member_to_group(self):
        group_name = 'test-suite-group'
        new_group = FiestaGroup.create(self.api, default_name=group_name, description=u"A group made by the fiesta test suite")

        group = FiestaGroup(self.api, id=new_group.id)   # could just re-use the group above, but this also tests the group init process
        user = group.add_member('*****@*****.**', member_display_name='Test User')

        self.assertTrue(user is not None, msg=u"User does not exist")
        self.assertTrue(len(user.id) > 1, msg=u"User ID was not stored")
예제 #2
0
    def test_should_create_group(self):
        group = FiestaGroup.create(self.api, description=u"A group made by the fiesta test suite")

        self.assertTrue(group.id is not None, msg=u"Group ID doesn't exist")
        self.assertTrue(len(group.id) > 1, msg=u"Group ID doesn't exist")