In a medium bowl, whisk together flour, cocoa, sugar and salt.
Make a well in the middle and add the eggs and olive oil. Mix at first with a spoon, then knead with your hands. The dough will be dry and stiff at first, but will soften the more you knead it. If it's dry (because eggs were too small) add water, a teaspoon at a time.
Cover and allow to rest at room temperature for 30-60 minutes. During this time, the dough will hydrate and become softer and pliable. Knead it for a few minutes on a well floured surface.
Follow your pasta maker manufacturer's instructions to roll/cut pasta (or roll it out thin and cut into strips with a knife).
To cook chocolate pasta, place it into salted boiling water and cook for 8-10 minutes. Drain and toss with olive oil.