예제 #1
0
 def test_incorrect_line_len(self):
     with open('Ontology/GoaIO/bad_line.fb', 'r') as f:
         it = GafReader(f)
         with self.assertRaises(ValueError):
             it.read()
예제 #2
0
 def test_incorrect_line_len(self):
     with open("Ontology/GoaIO/bad_line.fb", "r") as f:
         it = GafReader(f)
         with self.assertRaises(ValueError):
             it.read()
예제 #3
0
 def test_no_version(self):
     with open('Ontology/GoaIO/no_ver.fb', 'r') as f:
         it = GafReader(f, assoc_format="in_mem_sql")
         with self.assertRaises(ValueError):
             it.read()
예제 #4
0
 def test_no_version(self):
     with open("Ontology/GoaIO/no_ver.fb", "r") as f:
         it = GafReader(f, assoc_format="in_mem_sql")
         with self.assertRaises(ValueError):
             it.read()