Should a unit test depend on data from external systems?

No. A unit test should be fully automated, self-verifying, repeatable and consistent, and fast. In addition, it should run in isolation and test a single logical concept. Interaction with external systems violates some of these properties.

Book References
Read more about this topic inĀ Developer Testing: Building Quality into Software:

  • Chapter 7:Unit Testing, pages 81-83