model case teaching method 模拟案例教学法
In this method, we actually test an implementation by considering a complex application use case which represents a model of the architecture.
在这种方法中,我们通过考虑一个表示架构的模型的复杂应用程序用例来实际测试一个实现。
In this case, instead of checking to see if the field was blank we could invoke a method on a model object to ensure that the current user wasn't already in the system.
在该例中,不是检查字段是否为空,我们可以调用模型对象的方法来确保当前用户已经不在系统中。
The fixtures method automatically loads the fixture corresponding to the given model name at the start of each test method in the test case.
在测试用例中的每个测试方法的开头,fixtures方法自动地装载与模型名对应的fixture。
应用推荐