Scrapy, a fast high-level web crawling & scraping framework for Python.
Increase coverage of version command
Daniel Graña43fc2f23b800
diff --git a/tests/test_command_version.py b/tests/test_command_version.pyindex 420713d87..37e1f2543 100644--- a/tests/test_command_version.py+++ b/tests/test_command_version.py@@ -14,4 +14,16 @@ class VersionTest(ProcessTest, unittest.TestCase):def test_output(self):encoding = getattr(sys.stdout, 'encoding') or 'utf-8'_, out, _ = yield self.execute([])- self.assertEqual(out.strip().decode(encoding), "Scrapy %s" % scrapy.__version__)+ self.assertEqual(+ out.strip().decode(encoding),+ "Scrapy %s" % scrapy.__version__,+ )++ @defer.inlineCallbacks+ def test_verbose_output(self):+ encoding = getattr(sys.stdout, 'encoding') or 'utf-8'+ _, out, _ = yield self.execute(['-v'])+ headers = [l.partition(":")[0].strip()+ for l in out.strip().decode(encoding).splitlines()]+ self.assertEqual(headers, ['Scrapy', 'lxml', 'libxml2', 'Twisted',+ 'Python', 'pyOpenSSL', 'Platform'])