diff --git a/tests/test_cmd.py b/tests/test_cmd.py new file mode 100644 index 0000000..053364f --- /dev/null +++ b/tests/test_cmd.py @@ -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") diff --git a/tests/test_cpan.py b/tests/test_cpan.py new file mode 100644 index 0000000..d11f7a4 --- /dev/null +++ b/tests/test_cpan.py @@ -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") diff --git a/tests/test_gems.py b/tests/test_gems.py new file mode 100644 index 0000000..1ea2fa3 --- /dev/null +++ b/tests/test_gems.py @@ -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") diff --git a/tests/test_hackage.py b/tests/test_hackage.py new file mode 100644 index 0000000..b754aae --- /dev/null +++ b/tests/test_hackage.py @@ -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") diff --git a/tests/test_pypi.py b/tests/test_pypi.py new file mode 100644 index 0000000..59a4fa5 --- /dev/null +++ b/tests/test_pypi.py @@ -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")