Improve test coverage

This commit is contained in:
Alexander Kukushkin
2015-07-15 12:49:17 +02:00
parent 6d1a0d2a2c
commit 66f4f790d2
+6
View File
@@ -153,6 +153,12 @@ class TestPostgresql(unittest.TestCase):
self.p.follow_the_leader(self.leader)
self.p.follow_the_leader(self.other)
def test_create_connection_users(self):
cfg = self.p.config
cfg['superuser']['username'] = 'test'
p = Postgresql(cfg)
p.create_connection_users()
def test_create_replication_slots(self):
self.p.start()
cluster = Cluster(True, self.leader, 0, [self.me, self.other, self.leader])