Esempio n. 1
0
 def test_DataSourceOpen(self):
     local_file = valid_textfile(self.tmpdir)
     # Test case where destpath is passed in
     fp = datasource.open(local_file, destpath=self.tmpdir)
     assert_(fp)
     fp.close()
     # Test case where default destpath is used
     fp = datasource.open(local_file)
     assert_(fp)
     fp.close()
Esempio n. 2
0
 def test_DataSourceOpen(self):
     local_file = valid_textfile(self.tmpdir)
     # Test case where destpath is passed in
     assert datasource.open(local_file, destpath=self.tmpdir)
     # Test case where default destpath is used
     assert datasource.open(local_file)
Esempio n. 3
0
 def test_DataSourceOpen(self):
     local_file = valid_textfile(self.tmpdir)
     # Test case where destpath is passed in
     assert datasource.open(local_file, destpath=self.tmpdir)
     # Test case where default destpath is used
     assert datasource.open(local_file)