コード例 #1
0
 def test_set_name_none(self):
     seq = SequenceRecord("name1", "A", "=")
     with pytest.raises(TypeError) as error:
         seq.name = None
     error.match("str")
コード例 #2
0
 def test_set_name_bad(self):
     seq = SequenceRecord("name1", "A", "=")
     with pytest.raises(ValueError) as error:
         seq.name = "näme1"
     error.match("ASCII")