We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a3359b commit 3f63a84Copy full SHA for 3f63a84
tests/test_storage_passwords.py
@@ -50,13 +50,15 @@ def test_create_with_slashes(self):
50
realm = testlib.tmpname()
51
username = testlib.tmpname()
52
53
+ # Prepends one escaped slash
54
p = self.storage_passwords.create("changeme", "\\" + username, realm)
55
self.assertEqual(start_count + 1, len(self.storage_passwords))
56
self.assertEqual(p.realm, realm)
57
58
self.assertEqual(p.username, "\\" + username)
59
self.assertEqual(p.clear_password, "changeme")
60
+ # Checks for 2 escaped slashes (Splunk encodes the single slash)
61
self.assertEqual(p.name, realm + ":\\\\" + username + ":")
- print p.name
62
63
p.delete()
64
self.assertEqual(start_count, len(self.storage_passwords))
0 commit comments