| 149 | pymysql.connect(user=TestAuthentication.osuser, **self.db) |
| 150 | |
| 151 | class Dialog: |
| 152 | fail = False |
| 153 | |
| 154 | def __init__(self, con): |
| 155 | self.fail = TestAuthentication.Dialog.fail |
| 156 | |
| 157 | def prompt(self, echo, prompt): |
| 158 | if self.fail: |
| 159 | self.fail = False |
| 160 | return b"bad guess at a password" |
| 161 | return self.m.get(prompt) |
| 162 | |
| 163 | class DialogHandler: |
| 164 | def __init__(self, con): |
nothing calls this directly
no outgoing calls
no test coverage detected