Back to index

plone3  3.1.7
Public Member Functions
CMFPlone.tests.testContentTypeScripts.TestFileURL Class Reference
Inheritance diagram for CMFPlone.tests.testContentTypeScripts.TestFileURL:
Inheritance graph
[legend]
Collaboration diagram for CMFPlone.tests.testContentTypeScripts.TestFileURL:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def testFileURLWithHost
def testFileURLNoHost
def testFileURLFourSlash
def testFileURLFiveSlash
def testFileURLSixSlash
def setRequestMethod
def getAuthenticator
def setupAuthenticator

Detailed Description

Definition at line 300 of file testContentTypeScripts.py.


Member Function Documentation

Definition at line 30 of file PloneTestCase.py.

00030 
00031     def getAuthenticator(self):
00032         tag = AuthenticatorView('context', 'request').authenticator()
00033         pattern = '<input .*name="(\w+)".*value="(\w+)"'
00034         return match(pattern, tag).groups()

Here is the call graph for this function:

Here is the caller graph for this function:

def CMFPlone.tests.PloneTestCase.PloneTestCase.setRequestMethod (   self,
  method 
) [inherited]
This is a stub now, but in case you want to try
   something fancy on Your Branch (tm), put it here.

Definition at line 26 of file PloneTestCase.py.

00026 
00027     def setRequestMethod(self, method):
00028         self.app.REQUEST.set('REQUEST_METHOD', method)
00029         self.app.REQUEST.method = method

Here is the caller graph for this function:

Definition at line 35 of file PloneTestCase.py.

00035 
00036     def setupAuthenticator(self):
00037         name, token = self.getAuthenticator()
00038         self.app.REQUEST.form[name] = token
00039 

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 318 of file testContentTypeScripts.py.

00318 
00319     def testFileURLFiveSlash(self):
00320         self.folder.invokeFactory('Link', id='link', remote_url='file://///foo.com/baz.txt')
00321         # See urlparse.urlparse()
00322         self.assertEqual(self.folder.link.getRemoteUrl(), 'file:///foo.com/baz.txt')

Definition at line 313 of file testContentTypeScripts.py.

00313 
00314     def testFileURLFourSlash(self):
00315         self.folder.invokeFactory('Link', id='link', remote_url='file:////foo.com/baz.txt')
00316         # See urlparse.urlparse()
00317         self.assertEqual(self.folder.link.getRemoteUrl(), 'file://foo.com/baz.txt')

Definition at line 309 of file testContentTypeScripts.py.

00309 
00310     def testFileURLNoHost(self):
00311         self.folder.invokeFactory('Link', id='link', remote_url='file:///foo.txt')
00312         self.assertEqual(self.folder.link.getRemoteUrl(), 'file:///foo.txt')

Definition at line 323 of file testContentTypeScripts.py.

00323 
00324     def testFileURLSixSlash(self):
00325         self.folder.invokeFactory('Link', id='link', remote_url='file://////foo.com/baz.txt')
00326         # See urlparse.urlparse()
00327         self.assertEqual(self.folder.link.getRemoteUrl(), 'file:////foo.com/baz.txt')
00328 

Definition at line 305 of file testContentTypeScripts.py.

00305 
00306     def testFileURLWithHost(self):
00307         self.folder.invokeFactory('Link', id='link', remote_url='file://foo.com/baz.txt')
00308         self.assertEqual(self.folder.link.getRemoteUrl(), 'file://foo.com/baz.txt')


The documentation for this class was generated from the following file: