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