Lines Matching defs:attribute
77 "default mock should not have '_items' attribute")
500 self.assertTrue(is_instance(something, Mock), "attribute isn't a mock")
518 "attribute name not set correctly")
520 "attribute parent not set correctly")
571 "Mock object has no attribute 'something_else'",
589 "Mock object has no attribute 'z'",
594 "Mock object has no attribute '__foobar__'",
636 attribute = Mock()
641 self.assertEqual(mock.attribute(), real.attribute())
644 self.assertNotEqual(mock.attribute, real.attribute)
645 result = mock.attribute.frog(1, 2, fish=3)
646 Real.attribute.frog.assert_called_with(1, 2, fish=3)
647 self.assertEqual(result, Real.attribute.frog())
981 # shadow a sys attribute
1817 # note that creating a mock, setting an instance attribute, and
2097 # bpo-20239: Assigning and deleting twice an attribute raises.