def test_get_attribute_does_not_overwrite_existing_attr(self): m = Mock() m.foo = 42 self.assertEqual(42, m.foo)
def test_get_attribute_does_not_overwrite_existing_attr(self): m = Mock() m.foo = 42 self.assertEquals( 42, m.foo )
def test_get_attribute_auto_method_not_raises_unexpectedcall_when_stubbed( self): m = Mock() stub(m.foo).expect().returns('success') self.assertEqual('success', m.foo())
def test_get_attribute_auto_method_not_raises_unexpectedcall_when_stubbed(self): m = Mock() stub(m.foo).expect().returns('success') self.assertEquals( 'success', m.foo() )