示例#1
0
 def quote_test(self):
     self.assertEqual(simpleconfig.quote("nospaces"), "nospaces")
     self.assertEqual(simpleconfig.quote("plain string"), '"plain string"')
     self.assertEqual(simpleconfig.quote("alwaysquote", always=True), '"alwaysquote"')
 def quote_test(self):
     self.assertEqual(simpleconfig.quote("nospaces"), "nospaces")
     self.assertEqual(simpleconfig.quote("plain string"), '"plain string"')
     self.assertEqual(simpleconfig.quote("alwaysquote", always=True), '"alwaysquote"')
示例#3
0
 def quote_test(self):
     from pyanaconda.simpleconfig import quote
     self.assertEqual(quote("nospaces"), "nospaces")
     self.assertEqual(quote("plain string"), '"plain string"')
     self.assertEqual(quote("alwaysquote", always=True), '"alwaysquote"')
示例#4
0
 def quote_test(self):
     from pyanaconda.simpleconfig import quote
     self.assertEqual(quote("nospaces"), "nospaces")
     self.assertEqual(quote("plain string"), '"plain string"')
     self.assertEqual(quote("alwaysquote", always=True), '"alwaysquote"')
示例#5
0
 def test_quote(self):
     assert simpleconfig.quote("nospaces") == "nospaces"
     assert simpleconfig.quote("plain string") == '"plain string"'
     assert simpleconfig.quote("alwaysquote", always=True) == '"alwaysquote"'