From 793b1ad0dade4afcdb8ef4a3bc81c53fd1a47f6d Mon Sep 17 00:00:00 2001 From: Felix Yan Date: Wed, 4 Nov 2015 20:15:43 +0800 Subject: [PATCH] Add a testcase for PyPI --- tests/test_pypi.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/test_pypi.py 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")