Esempio n. 1
0
 def test_early_version(self, stdout):
     cmd = Command()
     with self.assertRaises(SystemExit):
         cmd.early_version(['--version'])
Esempio n. 2
0
 def test_early_version(self, stdout):
     cmd = Command()
     with self.assertRaises(SystemExit):
         cmd.early_version(['--version'])
Esempio n. 3
0
 def test_early_version(self, stdout):
     cmd = Command()
     with pytest.raises(SystemExit):
         cmd.early_version(['--version'])
Esempio n. 4
0
 def test_early_version(self, stdout):
     cmd = Command()
     with pytest.raises(SystemExit):
         cmd.early_version(['--version'])
Esempio n. 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')
Esempio n. 6
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')