# -*- coding: utf-8 -*-
#
# Setup tests
#

from Testing import ZopeTestCase


ZopeTestCase.installProduct("MemcachedManager")


class TestSetup(ZopeTestCase.ZopeTestCase):
    def afterSetUp(self):
        pass

    def testAddCacheManager(self):
        factory = self.folder.manage_addProduct["MemcachedManager"]
        factory.manage_addMemcachedManager(id="memcache")
        self.assertTrue("memcache" in self.folder.objectIds())


def test_suite():
    from unittest import makeSuite
    from unittest import TestSuite

    suite = TestSuite()
    suite.addTest(makeSuite(TestSetup))
    return suite
