def setUp(self):
     self.check_output = self.set_up_patch(
         'nginx_config_reloader.subprocess.check_output')
     self.tm = NginxConfigReloader(no_magento_config=False,
                                   no_custom_config=False,
                                   dir_to_watch='/data/web/nginx',
                                   magento2_flag=None)
    def test_assert_no_includes_in_config_does_not_check_config_if_no_dir_to_watch(
            self):
        self.isdir.return_value = False

        NginxConfigReloader.check_no_forbidden_config_directives_are_present(
            NginxConfigReloader())

        self.assertFalse(self.check_output.called)