def fake_init(self): # Initialize variables that would have been self._KubernetesMonitor__container_checker = None self._KubernetesMonitor__namespaces_to_include = ( K8sNamespaceFilter.default_value()) self._KubernetesMonitor__include_controller_info = None self._KubernetesMonitor__report_container_metrics = None self._KubernetesMonitor__metric_fetcher = None
def test_default_value(self): test_filter = K8sNamespaceFilter.default_value() self.assertTrue(test_filter.passes("foo")) self.assertFalse(test_filter.passes("kube-system"))