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)
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)
def clean(self): vcl_variable_validator(self.content, self.pk, VclVariable, VarnishServer)