def METHOD_NAME(self, num_replicas):
    """Test that invalid replications raise errors."""
    with pytest.raises(ValueError):
        freud.data.UnitCell.square().generate_system(num_replicas=num_replicas)