'Installs a masquerade for the test_user and test course, to enable the
user to masquerade as belonging to the specific partition/group combination.
Also verifies that the call to install the masquerade was successful.
Arguments:
partition_id (int): the integer partition id, referring to partitions already
configured in the course.
group_id (int); the integer group id, within the specified partition.'

def ensure_masquerade_as_group_member(self, partition_id, group_id):

    self.assertEqual(200, masquerade_as_group_member(self.test_user, self.course, partition_id, group_id))
