Changeset 1844 for TI03-DataExtractor


Ignore:
Timestamp:
08/12/06 13:56:39 (13 years ago)
Author:
spascoe
Message:

A new test case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI03-DataExtractor/branches/repackaging/server/ndg/dx/server/test/__init__.py

    r1841 r1844  
    66 
    77import sys, os, pkg_resources, tempfile, shutil 
    8 import unittest 
     8import unittest, re 
    99 
    1010from ndg.dx.server.MakeConfig import makeConfig 
     
    1818        # Create the NDG_HOME/dxs directory if it doesn't exist  
    1919        makeConfig() 
     20        from ndg.dx.server.scripts import DXWSInterface 
     21        self.DXWSInterface = DXWSInterface 
    2022 
    2123    def testStartSession(self): 
    22         from ndg.dx.server.scripts import DXWSInterface     
    23         print DXWSInterface.startSession('rob', 'rob1') 
     24        (session, secureToken) = self.DXWSInterface.startSession('rob', 'rob1') 
     25        self.assert_(re.match(r'session_', session)) 
     26        self.assert_(secureToken == 'undefined') 
     27         
     28    def testGetOptions(self): 
     29        (session, secureToken) = self.DXWSInterface.startSession('rob', 'rob1') 
     30        self.DXWSInterface.getOptions(session, secureToken) 
    2431 
    2532test_suite = unittest.TestSuite() 
Note: See TracChangeset for help on using the changeset viewer.