Exemple #1
0
def test_module_level_test_for_pytest():
    flexmock(foo='bar').should_receive('foo').once
    assertRaises(MethodCallError, flexmock_teardown)
def test_module_level_test_for_pytest():
    flexmock(foo="bar").should_receive("foo").once
    assertRaises(MethodCallError, flexmock_teardown)
Exemple #3
0
 def test_unittest(self):
     a = flexmock(a=2)
     a.should_receive('a').once
     assertRaises(MethodCallError, flexmock_teardown)
 def test_unittest(self):
     a = flexmock(a=2)
     a.should_receive("a").once
     assertRaises(MethodCallError, flexmock_teardown)
def test_module_level():
    m = flexmock(mod=2)
    m.should_receive('mod').once
    assertRaises(MethodCallError, flexmock_teardown)
 def test_class_level_test_for_pytest(self):
   flexmock(foo='bar').should_receive('foo').once
   assertRaises(MethodCallError, flexmock_teardown)
def test_module_level():
    m = flexmock(mod=2)
    m.should_receive('mod').once
    assertRaises(MethodCallError, flexmock_teardown)
 def test_regular(self):
     a = flexmock(a=2)
     a.should_receive('a').once
     assertRaises(MethodCallError, flexmock_teardown)