@@ -0,0 +1,888 @@
+import unittest%0Afrom robotide.namespace.namespace import _RetrieverContextFactory%0Afrom robot.parsing.model import ResourceFile%0Afrom robot.utils.asserts import assert_equals%0A%0A%0Adef datafileWithVariables(vars):%0A    data = ResourceFile()%0A    for var in vars:%0A        data.variable_table.add(var, vars%5Bvar%5D)%0A    return data%0A%0Aclass RetrieverContextFactoryTest(unittest.TestCase):%0A%0A    def test_created_context_has_variable_table_variables(self):%0A        factory = _RetrieverContextFactory()%0A        ctx = factory.ctx_for_datafile(datafileWithVariables(%7B'$%7Bfoo%7D':'moi',%0A                                                            '$%7Bbar%7D': 'hoi',%0A                                                            '@%7Bzoo%7D': 'koi'%7D))%0A        result = ctx.vars.replace_variables('!$%7Bfoo%7D!$%7Bbar%7D!@%7Bzoo%7D!')%0A        assert_equals(result, %22!moi!hoi!%5B'koi'%5D!%22)%0A%0Aif __name__ == '__main__':%0A    unittest.main()%0A

Add test for retriever context factory