-
Notifications
You must be signed in to change notification settings - Fork 7
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
Giorgio Gonnella
committed
Jun 18, 2020
1 parent
55b7968
commit 4e06a1c
Showing
3 changed files
with
29 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import gfapy | ||
import unittest | ||
|
||
class TestAPIGroupsValidation(unittest.TestCase): | ||
|
||
def test_invalid_path_gfa2(self): | ||
with self.assertRaises(gfapy.NotFoundError): | ||
g = gfapy.Gfa.from_file("tests/testdata/invalid_path.gfa2") | ||
|
||
def test_invalid_path_gfa2_vlevel0(self): | ||
g = gfapy.Gfa.from_file("tests/testdata/invalid_path.gfa2", vlevel = 0) | ||
with self.assertRaises(gfapy.NotFoundError): | ||
g.validate() | ||
|
||
def test_valid_path_gfa2(self): | ||
# nothing raised | ||
g = gfapy.Gfa.from_file("tests/testdata/valid_path.gfa2") |
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,6 @@ | ||
H VN:Z:2.0 | ||
S 1 6 AGCGTA | ||
S 2 6 TAACAG | ||
S 3 6 GCTAGT | ||
S 4 6 TCAGCG | ||
O P1 1+ 2+ 3+ 5+ |
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,6 @@ | ||
H VN:Z:2.0 | ||
S 1 6 AGCGTA | ||
S 2 6 TAACAG | ||
S 3 6 GCTAGT | ||
S 4 6 TCAGCG | ||
O P1 1+ 2+ 3+ 4+ |