471,342 Members | 1,826 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,342 software developers and data experts.

Using doctest with simple text files ?

I have a problem involving lots of simple text files (Java properties
files), for which I'm building Python tools to manage their contents.

I'm also writing lots of Python modules and using doctest to embed
unit tests within them. Maintenance and shhared code ownership is an
issue here.

What's the best way to test my file modification operations, within
the context of doctest-like testing? I like the simple immediacy of
doctest and it's working well for my "in-Python" testing, but I can't
seem to find a simple way of integrating it with the resultant text
files (e.g. something like diff)

Thanks

Jun 8 '07 #1
0 1090

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by Pierre Rouleau | last post: by
reply views Thread by Thomas Heller | last post: by
3 posts views Thread by John J Lee | last post: by
2 posts views Thread by Leo Breebaart | last post: by
2 posts views Thread by p.lavarre | last post: by
6 posts views Thread by Bzyczek | last post: by
4 posts views Thread by petr.jakes.tpc | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.