Is the root domain for the provided fqdn one of the known domains?
(fqdn, zone)
| 35 | |
| 36 | |
| 37 | def is_tracked_zone(fqdn, zone): |
| 38 | """ |
| 39 | Is the root domain for the provided fqdn one of the known domains? |
| 40 | """ |
| 41 | |
| 42 | if fqdn.endswith("." + zone) or fqdn == zone: |
| 43 | return True |
| 44 | return False |
| 45 | |
| 46 | |
| 47 | def monthdelta(date, delta): |
no outgoing calls
no test coverage detected