/[alph]/alph/org/nongnu/alph/impl/stormalph.test
ViewVC logotype

Diff of /alph/org/nongnu/alph/impl/stormalph.test

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by tjl, Mon Apr 28 08:56:23 2003 UTC revision 1.10 by mudyc, Fri May 23 14:26:32 2003 UTC
# Line 1  Line 1 
1    # -*-python-*-
2  import org  import org
3  import java  import java
4  import alph  import alph
# Line 61  def testAddTwice(): Line 61  def testAddTwice():
61                         'application/pdf')                         'application/pdf')
62      assert sb.getCurrent().length() == 2      assert sb.getCurrent().length() == 2
63    
64    def testDirPool():
65        pool = storm.impl.DirPool(java.io.File('testdata'), java.util.HashSet())
66        myalph = alph.impl.StormAlph(pool)
67    
68        testPass = 0
69        try:
70            myalph.addFile(java.io.File('./testdata/test1.pdf'), 'application/pdf')
71            testPass = 1
72        except:
73            pass
74        assert testPass == 1
75        

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26