def validate_template(template):
    """Check that the provided template only consists of DNA nucleotides"""
    for base in template:
        if base not in 'GATC':
            raise ValueError('template must consist of only GATC')
