def test_change_passwd(self): self.client.call = Mock(return_value='') u = User(self.xml, self.client) assert u.change_passwd('secret2') is None