def test_ConvertReturnsValueWhenNotDecorated(self): vc = ValueConvertor(None) self.assertEqual(10, vc.convert(10))
def test_ConvertChainsMethodCallsAppropriately(self): vc = ValueConvertor(self.mock_vc) vc.convert(10) self.mock_vc.convert.assert_called_once_with(10)