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): from pyanaconda.simpleconfig import quote self.assertEqual(quote("nospaces"), "nospaces") self.assertEqual(quote("plain string"), '"plain string"') self.assertEqual(quote("alwaysquote", always=True), '"alwaysquote"')
def test_quote(self): assert simpleconfig.quote("nospaces") == "nospaces" assert simpleconfig.quote("plain string") == '"plain string"' assert simpleconfig.quote("alwaysquote", always=True) == '"alwaysquote"'