def test_check_read_length(self):
        read_length = 50
        validator = ReadLengthValidator(read_length)
        validator.check_split_length(40)
        validator.check_split_length(10)
        validator.check_read_length()

        validator = ReadLengthValidator(read_length)
        validator.check_split_length(40)
        validator.check_split_length(11)
        self.assertRaises(ReadLengthValidationError, validator.check_read_length)

        validator = ReadLengthValidator(read_length)
        validator.check_split_length(15)
        validator.check_split_length(10)
        self.assertRaises(ReadLengthValidationError, validator.check_read_length)
 def test_check_split_length(self):
     read_length = 42
     validator = ReadLengthValidator(read_length)
     validator.check_split_length(42)
     self.assertRaises(ReadLengthValidationError, validator.check_split_length, 43)