@ebay -> @auction

This commit is contained in:
James Vega 2003-11-17 16:55:11 +00:00
parent f7e44d8f50
commit 2909c4a8c6
2 changed files with 5 additions and 5 deletions

View File

@ -106,7 +106,7 @@ class Ebay(callbacks.PrivmsgCommandAndRegexp, plugins.Configurable):
_seller)
_multiField = (_bidder, _winningBidder, _seller)
def ebay(self, irc, msg, args):
def auction(self, irc, msg, args):
"""[--link] <item>
Return useful information about the eBay auction with item number

View File

@ -33,13 +33,13 @@ from test import *
class EbayTest(PluginTestCase, PluginDocumentation):
plugins = ('Ebay',)
def testEbay(self):
self.assertResponse('ebay --link 3053641570',
def testAuction(self):
self.assertResponse('auction --link 3053641570',
'http://cgi.ebay.com/ws/eBayISAPI.dll?'
'ViewItem&item=3053641570')
# test 'Invalid Item' checking
self.assertRegexp('ebay 2357056673', 'That auction is invalid')
self.assertError('ebay foobar')
self.assertRegexp('auction 2357056673', 'That auction is invalid')
self.assertError('auction foobar')
def testSnarfer(self):
self.assertRegexp('http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem'