Exemplo n.º 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"')
Exemplo n.º 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"')
Exemplo n.º 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"')
Exemplo n.º 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"'