-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
67 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import unittest | ||
from tests import utils | ||
from isatools import sampletab | ||
from isatools import isatab | ||
import os | ||
|
||
|
||
class UnitSampleTabLoad(unittest.TestCase): | ||
|
||
def setUp(self): | ||
self._sampletab_data_dir = utils.SAMPLETAB_DATA_DIR | ||
|
||
def tearDown(self): | ||
pass | ||
|
||
def test_sampletab_load_test1(self): | ||
with open(os.path.join(self._sampletab_data_dir, 'test1.txt')) as fp: | ||
ISA = sampletab.load(fp) | ||
self.assertEqual(len(ISA.studies), 1) | ||
self.assertEqual(len(ISA.studies[0].materials['sources']), 1) | ||
self.assertEqual(len(ISA.studies[0].materials['samples']), 1) | ||
# print(isatab.dumps(ISA)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters