def METHOD_NAME(self):
    (
        client_master,
        client_slave,
        client_service,
    ) = self._create_default_client_supplied_security_groups()
    manager = EmrSecurityGroupManager(ec2_backend, self.vpc_id)
    manager.manage_security_groups(
        client_master.id, client_slave.id, client_service.id
    )
    client_group_names = [
        client_master.group_name,
        client_slave.group_name,
        client_service.group_name,
    ]
    security_groups = self._describe_security_groups(client_group_names)
    for security_group in security_groups:
        assert len(security_group["IpPermissions"]) > 0
        assert len(security_group["IpPermissionsEgress"]) > 0