Parse registered feature ids in user agent string. :type ua_string: str :rtype: list[str]
(ua_string)
| 31 | |
| 32 | |
| 33 | def parse_registered_feature_ids(ua_string): |
| 34 | """Parse registered feature ids in user agent string. |
| 35 | |
| 36 | :type ua_string: str |
| 37 | :rtype: list[str] |
| 38 | """ |
| 39 | ua_fields = ua_string.split(' ') |
| 40 | feature_field = [field for field in ua_fields if field.startswith('m/')][0] |
| 41 | return feature_field[2:].split(',') |
| 42 | |
| 43 | |
| 44 | class UACapHTTPStubber(ClientHTTPStubber): |
no outgoing calls
no test coverage detected