def test_publish(self): self.client.call = Mock(return_value='') h = Image(self.xml, self.client) assert h.publish() is None