Revision 8b71426c

b/kamaki/clients/test/pithos.py
741 741
            exp_args['if_etag_not_match'] = kwargs.pop('if_none_match')
742 742
            exp_args.update(kwargs)
743 743
            self.assertEqual(get.mock_calls[-1], call(obj, **exp_args))
744

  
745
    def test_set_account_group(self):
746
        group = 'aU53rGr0up'
747
        usernames = ['u1', 'u2', 'u3']
748
        with patch.object(PC, 'account_post', return_value=self.FR()) as post:
749
            self.client.set_account_group(group, usernames)
750
            self.assertEqual(
751
                post.mock_calls[-1],
752
                call(update=True, groups={group: usernames}))

Also available in: Unified diff