Пример #1
0
 def test_should_not_raise_vcl_validator_error_if_no_placeholders(self):
     ret_val = vcl_variable_validator(self.vcl_template2.content,
                                      self.vcl_template2.pk, VclVariable,
                                      VarnishServer)
     assert_is_none(ret_val)
Пример #2
0
 def test_should_substitute_all_variables_found(self):
     ret_val = vcl_variable_validator(self.vcl_template3.content,
                                      self.vcl_template3.pk, VclVariable,
                                      VarnishServer)
     assert_is_none(ret_val)
Пример #3
0
 def clean(self):
     vcl_variable_validator(self.content, self.pk, VclVariable, VarnishServer)