python-unittest
Unit-testing extensions for an 'external' program with pyunit
I\'m struggling to know where to start with unittest, having read the dive-into-python tutorial and looked at http://pyunit.sourceforge.net/.[详细]
2023-04-01 17:30 分类:问答pyUnit unit testing for Magento a good idea?
Today it was suggested to me to use PyUnit with our Magento modules because of its request and response objects. Is there any advantage to using an xUnit testing framework?[详细]
2023-03-26 15:23 分类:问答Mock an object in a method that is not a parameter in java similar to the following python code?
following is a very cool mocking with python, is there anyway to do that also in java? mockpath = os.path[详细]
2023-03-22 12:38 分类:问答Mock an object in a method that is not a parameter in python
(i\'m a python newbie) I was looking at: Mocking out objects and methods And I was wondering if i can replace an object in a python method which is not passed as a parameter, lets say my method is l[详细]
2023-03-22 08:45 分类:问答Should one use TestCase or FunctionTestCase for testing in python?
While trying to get a hunch of TDD in python I encountered the FunctionTestCase class. I understand, that it defi开发者_开发百科nes equivalent functions to the TestCase classes.[详细]
2023-03-13 13:43 分类:问答How can I simulate input to stdin for pyunit?
I\'m trying to test a function that takes input from stdin, which I\'m currently testing with s开发者_运维百科omething like this:[详细]
2023-03-11 07:36 分类:问答Is there a way to hook Django's unittest into PyUnit in eclipse?
I\'ve been working on a Django project for the past few weeks now, and it\'s been fairly smooth sailing. I use Django\'s unittest library to test everything, and the result show up in the console.[详细]
2023-02-25 06:48 分类:问答How to stop/disable PyUnit when using PyDev
I would like to have PyUnit stop showing up each time I hit CtrlF11. It\'开发者_StackOverflows distracting and I don\'t understand it\'s output anyways, nor did I (knowingly) elect to enable it. I can[详细]
2023-02-13 17:48 分类:问答How can I create a class-scoped test fixture in pyUnit?
I am unit testing mercurial integration and have a test class which currently creates a repository with a file and a clone of that repository in its setUp method and removes t开发者_运维技巧hem in its[详细]
2023-02-08 16:55 分类:问答How do I test beginner student Python programs that use input() (maybe with unittest?)?
I\'m a grader for a beginning programming class using Python.My python-fu is not so strong myself, but I would like to try to automate some of the grading.[详细]
2023-02-08 11:18 分类:问答