root/pyndexter/trunk/pyndexter/tests/framework.py

Revision 452, 0.7 KB (checked in by athomas, 3 years ago)

pyndexter: All modules are now prefixed with _ to avoid import collisions. Updated unit tests.

  • Property svn:eol-style set to native
Line 
1# -*- coding: utf-8 -*-
2#
3# Copyright (C) 2006 Alec Thomas <alec@swapoff.org>
4#
5# This software is licensed as described in the file COPYING, which
6# you should have received as part of this distribution.
7#
8
9import unittest
10from pyndexter import *
11from pyndexter.indexers._mock import MockIndexer
12from pyndexter.indexers.tests import IndexerTestCase
13
14
15class FrameworkTestCase(IndexerTestCase):
16    indexer = 'mock://%s'
17
18    def test_indexer_uri(self):
19        self.assertTrue(isinstance(self.framework.indexer, MockIndexer))
20
21
22def suite():
23    suite = unittest.TestSuite()
24    suite.addTest(unittest.makeSuite(FrameworkTestCase))
25    return suite
26
27
28if __name__ == '__main__':
29    unittest.main(defaultTest='suite')
Note: See TracBrowser for help on using the browser.