'Tests that a staff member can masquerade as being in a group in a user partition'

@patch.dict('django.conf.settings.FEATURES', {'DISABLE_START_DATES': False})
def test_get_masquerade_group(self):

    group = get_masquerading_user_group(self.course.id, self.test_user, self.user_partition)
    self.assertIsNone(group)
    self.ensure_masquerade_as_group_member(0, 1)
    group = get_masquerading_user_group(self.course.id, self.test_user, self.user_partition)
    self.assertEqual(group.id, 1)
