1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-24 10:03:55 +00:00
scrapy/tests/test_command_version.py
2014-07-30 19:45:08 -03:00

16 lines
379 B
Python

from twisted.trial import unittest
from twisted.internet import defer
import scrapy
from scrapy.utils.testproc import ProcessTest
class VersionTest(ProcessTest, unittest.TestCase):
command = 'version'
@defer.inlineCallbacks
def test_output(self):
_, out, _ = yield self.execute([])
self.assertEqual(out.strip(), "Scrapy %s" % scrapy.__version__)