def test_17(self): main([ '--configFile', "config.toml", "--inputDirectory", f"""{os.path.join(os.getcwd(), "input", "foo2")}""", '--trailingStringTemplateFile', '.template', f"--outputDirectory", f"""{os.path.join(os.getcwd(), "output/foo2")}""", '--format', 'fstring', ])
def test_15(self): self.assertStdoutEqual( "Hello 1, 2, 3\n", lambda: main([ '--configFile', "config.toml", '--format', 'python', '--writeOnStdout', """print("Hello " + ', '.join(map(str, [1,2,3])))""" ]))
def test_10(self): self.assertStdoutEqual( "Hello a and a and !", lambda: main([ "--configFile", "config.toml", "--writeOnStdout", "--value", "persons[0].surname", "Mario", "--value", "persons[1].surname", "Paolo", "Hello {% for p in model.persons %} {{ functions.replace_with_a(p.surname) }} and {%endfor %}!" ]))
def test_09(self): self.assertStdoutEqual( "Hello Paolo!", lambda: main([ '--configFile', "config.toml", '--format', 'format', '--writeOnStdout', "--value", "persons[0].surname", "Mario", "--value", "persons[1].surname", "Paolo", """Hello {model.persons[1].surname}!""" ]))
def test_04(self): self.assertStdoutEqual( "Hello Mario and Paolo and !", lambda: main([ "--configFile", "config.toml", "--writeOnStdout", "--value", "persons[0].surname", "Mario", "--value", "persons[1].surname", "Paolo", "Hello {% for p in model.persons %} {{ p.surname }} and {%endfor %}!" ]))
def test_08(self): self.assertStdoutEqual( "Hello Pluto 042!", lambda: main([ '--configFile', "config.toml", '--format', 'format', '--writeOnStdout', "Hello {model.name} {model.age:03}!" ]))
def test_03(self): self.assertStdoutEqual( "Hello World!!", lambda: main([ "--configFile", "config.toml", "--writeOnStdout", "--value", "person.surname", "World!", "Hello {{ model.person.surname }}!" ]))
def test_01(self): self.assertStdoutEqual( "Hello Pluto!", lambda: main([ '--configFile', "config.toml", '--writeOnStdout', "Hello {{ model.name }}!" ]))
def test_version(self): self.assertStdoutEqual(str(version.VERSION), lambda: main(["test", "--version"]))
def test_14(self): self.assertStdoutEqual( "Hello Pluto!\n", lambda: main([ '--configFile', "config.toml", '--format', 'python', '--writeOnStdout', """print(f'Hello {model.name}!')""" ]))
def test_13(self): self.assertStdoutEqual( "Hello a!", lambda: main([ '--configFile', "config.toml", '--format', 'fstring', '--writeOnStdout', """'Hello {replace_with_a(model.name)}!'""" ]))
def test_12(self): self.assertStdoutEqual( "Hello Pluto!", lambda: main([ '--configFile', "config.toml", '--format', 'fstring', '--writeOnStdout', """'Hello {model.name}!'""" ]))