def test_drilling_cgc():
    """
    Test drilling on the cgc binary, palindrome.
    """

    binary = "tests/cgc/sc1_0b32aa01_01"

    # fuzzbitmap says every transition is worth satisfying.
    d = driller.Driller(os.path.join(bin_location, binary), b"AAAA", b"\xff"*65535, "whatever~")

    new_inputs = d.drill()

    assert len(new_inputs) == 7

    # Make sure driller produced a new input which hits the easter egg.
    assert any(filter(lambda x: x[1].startswith(b'^'), new_inputs))

    Test drilling on the cgc binary, palindrome.
    
tests/test_driller.py