Exemplo n.º 1
0
 def test_pp_with_no_args(self):
     expect(string.pp()).toBe("")
Exemplo n.º 2
0
 def test_pp_of_args_and_kwargs(self):
     expect(string.pp(1, a='a')).toBe("1, a='a'")
Exemplo n.º 3
0
 def test_pp_of_multiple_args(self):
     expect(string.pp(1, 2)).toBe("1, 2")
     expect(string.pp(1, [2, 3])).toBe("1, [2, 3]")
Exemplo n.º 4
0
 def test_pp_of_kwargs(self):
     expect(string.pp(a=1, b=2)).toBe("a=1, b=2")
Exemplo n.º 5
0
 def test_pp_of_single_arg(self):
     expect(string.pp('1')).toBe("'1'")
     expect(string.pp(1)).toBe("1")