Merge remote-tracking branch 'origin/pr/22'

This commit is contained in:
lilydjwg 2015-11-04 20:52:43 +08:00
commit b047840c04
5 changed files with 34 additions and 0 deletions

10
tests/test_cmd.py Normal file
View File

@ -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")

6
tests/test_cpan.py Normal file
View File

@ -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")

6
tests/test_gems.py Normal file
View File

@ -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")

6
tests/test_hackage.py Normal file
View File

@ -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")

6
tests/test_pypi.py Normal file
View File

@ -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")