2016-08-09 10:05:40 -05:00
|
|
|
# ##########################################################################
|
|
|
|
#
|
|
|
|
# #pgAdmin 4 - PostgreSQL Tools
|
|
|
|
#
|
2017-01-04 07:33:32 -06:00
|
|
|
# #Copyright (C) 2013 - 2017, The pgAdmin Development Team
|
2016-08-09 10:05:40 -05:00
|
|
|
# #This software is released under the PostgreSQL Licence
|
|
|
|
#
|
|
|
|
# ##########################################################################
|
|
|
|
|
|
|
|
|
|
|
|
def change_password(self):
|
|
|
|
response = self.tester.get('/change', follow_redirects=True)
|
2016-10-07 07:59:43 -05:00
|
|
|
self.assertTrue('pgAdmin 4 Password Change' in response.data.decode(
|
2016-08-09 10:05:40 -05:00
|
|
|
'utf-8'))
|
|
|
|
|
|
|
|
response = self.tester.post('/change', data=dict(
|
|
|
|
password=self.password,
|
|
|
|
new_password=self.new_password,
|
|
|
|
new_password_confirm=self.new_password_confirm),
|
|
|
|
follow_redirects=True)
|
2016-10-07 07:59:43 -05:00
|
|
|
self.assertTrue(self.respdata in response.data.decode('utf-8'))
|