Added vim modelines.

This commit is contained in:
Jeremy Fincher 2003-08-17 22:13:10 +00:00
parent 0f4a78dc2d
commit 2c6f505bea
15 changed files with 78 additions and 0 deletions

View File

@ -175,3 +175,5 @@ if __name__ == '__main__':
runner.run(suite)
print 'Total asserts: %s' % unittest.asserts
world.testing = False
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -60,3 +60,5 @@ class FunctionsTest(unittest.TestCase):
self.assertEqual(Alias.findBiggestDollar('foo $0 $1'), 1)
self.assertEqual(Alias.findBiggestDollar('foo $1 $3'), 3)
self.assertEqual(Alias.findBiggestDollar('$10 bar $1'), 10)
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -84,3 +84,4 @@ class FunCommandsTest(PluginTestCase):
i = ord(c)
self.assertResponse('ord %s' % utils.dqrepr(c), str(i))
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

38
test/test_FunDB.py Normal file
View File

@ -0,0 +1,38 @@
#!/usr/bin/env python
###
# Copyright (c) 2002, Jeremiah Fincher
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions, and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions, and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the author of this software nor the name of
# contributors to this software may be used to endorse or promote products
# derived from this software without specific prior written consent.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
###
from test import *
class TestFunDB(PluginTestCase):
pass
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -60,3 +60,7 @@ class HttpTest(PluginTestCase):
def testNetcraft(self):
self.assertNotError('netcraft slashdot.org')
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -40,3 +40,5 @@ class UnixTestCase(PluginTestCase):
'not find')
self.assertNotError('spell Strizzike')
self.assertError('spell foo bar baz')
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -116,3 +116,5 @@ class FunctionsTestCase(unittest.TestCase):
self.assertEqual(ircmsgs.privmsg(channelMsg.args[0],
'%s: foo' % channelMsg.nick),
callbacks.reply(channelMsg, 'foo'))
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -117,3 +117,6 @@ class FunctionsTest(unittest.TestCase):
self.assertEqual(lflatten([[[[[[[[[[]]]]]]]]]]), [])
self.assertEqual(lflatten([1, [2, [3, 4], 5], 6]), [1, 2, 3, 4, 5, 6])
self.assertRaises(TypeError, lflatten, 1)
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -397,3 +397,7 @@ class CheckCapabilityTestCase(unittest.TestCase):
self.failIf(self.checkCapability(self.antichanfoo, self.chancap))
self.failUnless(self.checkCapability(self.antichanfoo,
self.antichancap))
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -269,3 +269,6 @@ class IrcCallbackTestCase(unittest.TestCase):
expected.insert(0, ircmsgs.password(password))
self.assertEqual(msgs, expected)
conf.throttleTime = oldconfthrottle
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -154,3 +154,6 @@ class FunctionsTestCase(unittest.TestCase):
keys.pop()
self.assertEqual(ircmsgs.joins(channels, keys).args,
('#osu,#umich', 'michiganSucks'))
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -190,3 +190,8 @@ class IrcDictTestCase(unittest.TestCase):
self.assertEqual(12, d['#foo'])
d['#fOOBAR[]'] = 'blah'
self.assertEqual('blah', d['#foobar{}'])
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -61,3 +61,7 @@ class FunctionsTest(unittest.TestCase):
args + [''])
self.assertEqual(privmsgs.getArgs(args, needed=0, optional=1),
' '.join(args))
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -66,3 +66,5 @@ class TestSchedule(unittest.TestCase):
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -376,3 +376,6 @@ class MaxLengthQueueTestCase(unittest.TestCase):
self.assertEqual(len(q), 3)
self.assertEqual(q[0], 3)
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: