File: test_gfapy_line_header.py

package info (click to toggle)
gfapy 1.0.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,932 kB
  • sloc: python: 11,549; sh: 167; makefile: 66
file content (12 lines) | stat: -rw-r--r-- 364 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
import unittest
import gfapy

class TestLineHeader(unittest.TestCase):

  def test_from_string(self):
    gfapy.Line("H\tVN:Z:1.0")
    self.assertIsInstance(gfapy.Line("H\tVN:Z:1.0"), gfapy.line.Header)
    with self.assertRaises(gfapy.FormatError):
      gfapy.Line("H\tH2\tVN:Z:1.0")
    with self.assertRaises(gfapy.TypeError):
      gfapy.Line("H\tVN:i:1.0")