mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-24 10:03:55 +00:00
16 lines
379 B
Python
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__)
|