def test_wrong_get_by_id(self): self.client.call = Mock(return_value=self.xml) pool = VirtualMachinePool(self.client) pool.info() pool.get_by_id(1010011010)
def test_get_by_id(self): self.client.call = Mock(return_value=self.xml) pool = VirtualMachinePool(self.client) pool.info() assert pool.get_by_id(8).id == 8