Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(9)  |  Call(9)  |  Derive(0)  |  Import(0)

src/m/i/mi7-HEAD/tests/test_spy.py   mi7(Download)
          .returns(True)
 
    controller = tests.controllers.MyController()
 
    result = controller.index()
          .returns(True)
 
    controller = tests.controllers.MyController()
 
    #forcefully end mission
                .returns(False)
 
    controller = tests.controllers.MyController()
 
    assert not controller.other()
               .returns(True)
 
    controller = tests.controllers.MyController()
 
    result = controller.index()

src/m/i/mi7-HEAD/tests/test_raises.py   mi7(Download)
          .raises(ValueError("whatever"))
 
    controller = tests.controllers.MyController()
 
    try:

src/m/i/mi7-HEAD/tests/test_different_spy.py   mi7(Download)
                .returns(False)
 
    controller = tests.controllers.MyController()
 
    assert not controller.other()

src/m/i/mi7-HEAD/tests/test_attribute_actions.py   mi7(Download)
          .as_attribute("Waldo")
 
    controller = tests.controllers.MyController()
 
    result = controller.user_name()
          .as_attribute("other")
 
    controller = tests.controllers.MyController()
 
    result = controller.user_name()

src/m/i/mi7-HEAD/tests/test_asserts.py   mi7(Download)
          .returns("whatever")
 
    controller = tests.controllers.MyController()
 
    assert not agents.User.has_seen('is_authenticated')