예제 #1
0
파일: test_base.py 프로젝트: AlJohri/celery
 def test_early_version(self, stdout):
     cmd = Command()
     with self.assertRaises(SystemExit):
         cmd.early_version(['--version'])
예제 #2
0
 def test_early_version(self, stdout):
     cmd = Command()
     with self.assertRaises(SystemExit):
         cmd.early_version(['--version'])
예제 #3
0
 def test_early_version(self, stdout):
     cmd = Command()
     with pytest.raises(SystemExit):
         cmd.early_version(['--version'])
예제 #4
0
 def test_early_version(self, stdout):
     cmd = Command()
     with pytest.raises(SystemExit):
         cmd.early_version(['--version'])
예제 #5
0
 def test_early_version(self, stdout):
     cmd = Command()
     with self.assertRaises(SystemExit):
         cmd.early_version(['--version'])
     stdout.write.assert_called_with(cmd.version + '\n')
예제 #6
0
파일: test_base.py 프로젝트: DXist/celery
 def test_early_version(self, stdout):
     cmd = Command()
     with self.assertRaises(SystemExit):
         cmd.early_version(['--version'])
     stdout.write.assert_called_with(cmd.version + '\n')