Skip to content

Commit

Permalink
100% for tests.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Nov 2, 2017
1 parent 189cfb2 commit 484de35
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/zope/index/tests.py
Expand Up @@ -13,11 +13,11 @@
##############################################################################
"""N-Best index tests
"""
from unittest import TestCase, main, makeSuite
import unittest

from zope.index.nbest import NBest

class NBestTest(TestCase):
class NBestTest(unittest.TestCase):

def testConstructor(self):
self.assertRaises(ValueError, NBest, 0)
Expand Down Expand Up @@ -90,9 +90,3 @@ def testAllSameScore(self):
nb.addmany(inputs)
outputs = nb.getbest()
self.assertEqual(outputs, inputs[:len(outputs)])

def test_suite():
return makeSuite(NBestTest)

if __name__=='__main__':
main(defaultTest='test_suite')

0 comments on commit 484de35

Please sign in to comment.