def test_includes_maas_configuration(self): ntp_maas_conf_path = factory.make_name(config._ntp_maas_conf_name) ntp_conf = config._render_ntp_conf(ntp_maas_conf_path) included_files = extract_included_files(ntp_conf) self.assertThat(included_files, Equals([ntp_maas_conf_path]))
def test_removes_pools_and_servers_from_source_configuration(self): ntp_maas_conf_path = factory.make_name(config._ntp_maas_conf_name) ntp_conf = config._render_ntp_conf(ntp_maas_conf_path) servers_or_pools = extract_servers_and_pools(ntp_conf) self.assertThat(servers_or_pools, Equals([]))