Fixes Issue 2630 - Support documenting unittest code as code samples.
Merge pull request #1342 from AndrejMitrovic/Fix2630

[enh] Issue 2630 - Support documenting unittest code as code samples.