|
Revision 452, 0.7 kB
(checked in by athomas, 1 year 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 |
|
|---|
| 9 |
import unittest |
|---|
| 10 |
from pyndexter import * |
|---|
| 11 |
from pyndexter.indexers._mock import MockIndexer |
|---|
| 12 |
from pyndexter.indexers.tests import IndexerTestCase |
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
class FrameworkTestCase(IndexerTestCase): |
|---|
| 16 |
indexer = 'mock://%s' |
|---|
| 17 |
|
|---|
| 18 |
def test_indexer_uri(self): |
|---|
| 19 |
self.assertTrue(isinstance(self.framework.indexer, MockIndexer)) |
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
def suite(): |
|---|
| 23 |
suite = unittest.TestSuite() |
|---|
| 24 |
suite.addTest(unittest.makeSuite(FrameworkTestCase)) |
|---|
| 25 |
return suite |
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
if __name__ == '__main__': |
|---|
| 29 |
unittest.main(defaultTest='suite') |
|---|