Merge remote-tracking branch 'origin/pr/22'
This commit is contained in:
commit
b047840c04
|
@ -0,0 +1,10 @@
|
|||
from tornado.ioloop import IOLoop
|
||||
from tests.helper import ExternalVersionTestCase
|
||||
|
||||
|
||||
class CMDTest(ExternalVersionTestCase):
|
||||
def get_new_ioloop(self):
|
||||
return IOLoop.instance()
|
||||
|
||||
def test_cmd(self):
|
||||
self.assertEqual(self.sync_get_version("example", {"cmd": "echo Meow"}), "Meow")
|
|
@ -0,0 +1,6 @@
|
|||
from tests.helper import ExternalVersionTestCase
|
||||
|
||||
|
||||
class CPANTest(ExternalVersionTestCase):
|
||||
def test_cpan(self):
|
||||
self.assertEqual(self.sync_get_version("POE-Component-Server-HTTPServer", {"cpan": None}), "0.9.2")
|
|
@ -0,0 +1,6 @@
|
|||
from tests.helper import ExternalVersionTestCase
|
||||
|
||||
|
||||
class RubyGemsTest(ExternalVersionTestCase):
|
||||
def test_gems(self):
|
||||
self.assertEqual(self.sync_get_version("example", {"gems": None}), "1.0.2")
|
|
@ -0,0 +1,6 @@
|
|||
from tests.helper import ExternalVersionTestCase
|
||||
|
||||
|
||||
class HackageTest(ExternalVersionTestCase):
|
||||
def test_hackage(self):
|
||||
self.assertEqual(self.sync_get_version("sessions", {"hackage": None}), "2008.7.18")
|
|
@ -0,0 +1,6 @@
|
|||
from tests.helper import ExternalVersionTestCase
|
||||
|
||||
|
||||
class PyPITest(ExternalVersionTestCase):
|
||||
def test_pypi(self):
|
||||
self.assertEqual(self.sync_get_version("example", {"pypi": None}), "0.1.0")
|
Loading…
Reference in New Issue