Python module to make testing easier, it can generate random data like names and text, run commands, fetch urls, create files and directories, and more
as discussed in https://github.com/Jaymon/testdata/issues/32 I think I should add a testdata.duck that can take an object and produce an object similar to the passed in object, but it should also have the ability to convert it into a dict and things like that, so if I had something like:
as discussed in https://github.com/Jaymon/testdata/issues/32 I think I should add a
testdata.duck
that can take an object and produce an object similar to the passed in object, but it should also have the ability to convert it into a dict and things like that, so if I had something like:I could do this:
You could have a whole host of
duck*
methods on the duck-typed class