Ejemplo n.º 1
0
 def testSearchEverything1(self):
     results = search_files("s3.mediasnak.com",0,"default","file")
     count = 0
     #for item in results:
     #    count = count + 1
     count = len(results)
     self.assertEquals(count, 4)
Ejemplo n.º 2
0
 def testSeachUploadTime2(self):
     results = search_files("s3.mediasnak.com",0,"uploadtime","2000")
     count = 0
     for item in results:
         count = count + 1
     self.assertEquals(count,3)
Ejemplo n.º 3
0
 def testSearchFileName2(self):
     results = search_files("s3.mediasnak.com",0,"filename","file")
     count = 0
     for item in results:
         count = count + 1
     self.assertEquals(count,3)
Ejemplo n.º 4
0
 def testSearchEverything2(self):
     results = search_files("s3.mediasnak.com",0,"default","1")
     count = 0
     for item in results:
         count = count + 1
     self.assertEquals(count,3)