def METHOD_NAME(self):
    safeunquoted = string.ascii_letters + string.digits + '@%_-+=:,./'
    unsafe = '"`$\\!'
    self.assertEqual(pipes.quote(''), "''")
    self.assertEqual(pipes.quote(safeunquoted), safeunquoted)
    self.assertEqual(pipes.quote('test file name'), "'test file name'")
    for u in unsafe:
        self.assertEqual(pipes.quote('test%sname' % u),
                          "'test%sname'" % u)
    for u in unsafe:
        self.assertEqual(pipes.quote("test%s'name'" % u),
                         "'test%s'\"'\"'name'\"'\"''" % u)