def setUp(self):
        super(TestKeypairDelete, self).setUp()

        self.keypairs_mock.get.return_value = self.keypair
        self.keypairs_mock.delete.return_value = None

        self.cmd = keypair.DeleteKeypair(self.app, None)
    def setUp(self):
        super(TestKeypairDelete, self).setUp()

        self.keypairs_mock.get = compute_fakes.FakeKeypair.get_keypairs(
            self.keypairs)
        self.keypairs_mock.delete.return_value = None

        self.cmd = keypair.DeleteKeypair(self.app, None)
Ejemplo n.º 3
0
    def setUp(self):
        super(TestKeypairDelete, self).setUp()

        self.cmd = keypair.DeleteKeypair(self.app, None)