def METHOD_NAME(self):
    # Test normal call
    tr = Template("{% load append_query_params %}" "{% append_query_params key1=var1,key2=var2 %}").render(
        self.context
    )
    self.assertTrue(tr == "/data/test?key1=1&key2=2" or tr == "/data/test?key2=2&key1=1")
    # Test call with one argument
    tr = Template("{% load append_query_params %}" "{% append_query_params key1=var1 %}").render(self.context)
    self.assertEqual(tr, "/data/test?key1=1")