mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 02:24:12 +01:00
@ebay -> @auction
This commit is contained in:
parent
f7e44d8f50
commit
2909c4a8c6
@ -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
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user