| Conditions | 2 |
| Total Lines | 7 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | from asyncua.crypto import uacrypto |
||
| 27 | def get_user(self, certificate): |
||
| 28 | correct_users = [prospective_certificate['user'] for prospective_certificate in self._trusted_certificates.values() |
||
| 29 | if certificate == prospective_certificate['certificate']] |
||
| 30 | if len(correct_users) == 0: |
||
| 31 | return None |
||
| 32 | else: |
||
| 33 | return correct_users[0] |
||
| 34 |