def test_literal_provn_with_triple_quotes(self):
     l = Literal('"""foo\\nbar"""')
     string_rep = l.provn_representation()
     self.assertTrue('\\"\\"\\"f' in string_rep)
Beispiel #2
0
 def test_literal_provn_with_triple_quotes(self):
     l = Literal('"""foo\\nbar"""')
     string_rep = l.provn_representation()
     self.assertTrue('\\"\\"\\"f' in string_rep)
 def test_literal_provn_with_single_quotes(self):
     l = Literal('{"foo": "bar"}')
     string_rep = l.provn_representation()
     self.assertTrue('{\\"f' in string_rep)
Beispiel #4
0
 def test_literal_provn_with_single_quotes(self):
     l = Literal('{"foo": "bar"}')
     string_rep = l.provn_representation()
     self.assertTrue('{\\"f' in string_rep)