From f02da72993eb8e5a34ed049bad442c6d6db4701a Mon Sep 17 00:00:00 2001 From: Stuart Mackie Date: Wed, 19 Oct 2016 14:29:38 -0700 Subject: Removed cassandra charm. Will fetch in fetch-charms.sh in joid Change-Id: I668ca30b3b76fc2107045907be5b6010a552e6a9 Signed-off-by: Stuart Mackie --- charms/trusty/cassandra/tests/base.py | 43 ----------------------------------- 1 file changed, 43 deletions(-) delete mode 100755 charms/trusty/cassandra/tests/base.py (limited to 'charms/trusty/cassandra/tests/base.py') diff --git a/charms/trusty/cassandra/tests/base.py b/charms/trusty/cassandra/tests/base.py deleted file mode 100755 index d308985..0000000 --- a/charms/trusty/cassandra/tests/base.py +++ /dev/null @@ -1,43 +0,0 @@ -# Copyright 2015 Canonical Ltd. -# -# This file is part of the Cassandra Charm for Juju. -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 3, as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranties of -# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR -# PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -import functools -from itertools import count -import unittest -from unittest.mock import patch - -from testing.mocks import mock_charmhelpers - -patch = functools.partial(patch, autospec=True) # autospec by default. - - -class TestCaseBase(unittest.TestCase): - def setUp(self): - super(TestCaseBase, self).setUp() - - mock_charmhelpers(self) - - is_lxc = patch('helpers.is_lxc', return_value=False) - is_lxc.start() - self.addCleanup(is_lxc.stop) - - emit = patch('helpers.emit') - emit.start() - self.addCleanup(emit.stop) - - time = patch('time.time', side_effect=count(1)) - time.start() - self.addCleanup(time.stop) -- cgit 1.2.3-korg