Example #1
0
 def test_pp_with_no_args(self):
     expect(string.pp()).toBe("")
Example #2
0
 def test_pp_of_args_and_kwargs(self):
     expect(string.pp(1, a='a')).toBe("1, a='a'")
Example #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]")
Example #4
0
 def test_pp_of_kwargs(self):
     expect(string.pp(a=1, b=2)).toBe("a=1, b=2")
Example #5
0
 def test_pp_of_single_arg(self):
     expect(string.pp('1')).toBe("'1'")
     expect(string.pp(1)).toBe("1")