Increase the test coverage.

This commit is contained in:
Oleksii Kliukin
2015-10-19 10:13:14 +02:00
parent 11073ac644
commit 4e448015f3
2 changed files with 11 additions and 1 deletions
+4
View File
@@ -429,3 +429,7 @@ class TestPostgresql(unittest.TestCase):
self.p.cleanup_archive_status()
mock_unlink.assert_not_called()
mock_remove.assert_not_called()
@patch('subprocess.check_output', MagicMock(return_value=0, side_effect=pg_controldata_string))
def test_sysid(self):
self.assertEqual(self.p.sysid, "6200971513092291716")