comparison test/test_hyperdbvals.py @ 3677:11e31e50c826

remove invalid, out-of-place test
author Richard Jones <richard@users.sourceforge.net>
date Fri, 18 Aug 2006 01:26:19 +0000
parents a15c15510e99
children eddb82d0964c
comparison
equal deleted inserted replaced
3676:1343ae27dde9 3677:11e31e50c826
6 # 6 #
7 # This module is distributed in the hope that it will be useful, 7 # This module is distributed in the hope that it will be useful,
8 # but WITHOUT ANY WARRANTY; without even the implied warranty of 8 # but WITHOUT ANY WARRANTY; without even the implied warranty of
9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 # 10 #
11 # $Id: test_hyperdbvals.py,v 1.2 2006-08-11 04:50:24 richard Exp $ 11 # $Id: test_hyperdbvals.py,v 1.3 2006-08-18 01:26:19 richard Exp $
12 12
13 import unittest, os, shutil, errno, sys, difflib, cgi, re, sha 13 import unittest, os, shutil, errno, sys, difflib, cgi, re, sha
14 14
15 from roundup import init, instance, password, hyperdb, date 15 from roundup import init, instance, password, hyperdb, date
16 16
109 self.assertEqual(self._test('link', '1'), '1') 109 self.assertEqual(self._test('link', '1'), '1')
110 self.assertEqual(self._test('link', 'valid'), '1') 110 self.assertEqual(self._test('link', 'valid'), '1')
111 self.assertRaises(hyperdb.HyperdbValueError, self._test, 'link', 111 self.assertRaises(hyperdb.HyperdbValueError, self._test, 'link',
112 'invalid') 112 'invalid')
113 def testMultilink(self): 113 def testMultilink(self):
114 self.assertEqual(self._test('password', ''), [])
115 self.assertEqual(self._test('multilink', '', '1'), []) 114 self.assertEqual(self._test('multilink', '', '1'), [])
116 self.assertEqual(self._test('multilink', '1', '1'), ['1']) 115 self.assertEqual(self._test('multilink', '1', '1'), ['1'])
117 self.assertEqual(self._test('multilink', 'valid', '1'), ['1']) 116 self.assertEqual(self._test('multilink', 'valid', '1'), ['1'])
118 self.assertRaises(hyperdb.HyperdbValueError, self._test, 'multilink', 117 self.assertRaises(hyperdb.HyperdbValueError, self._test, 'multilink',
119 'invalid', '1') 118 'invalid', '1')

Roundup Issue Tracker: http://roundup-tracker.org/