Пример #1
0
 def test_validate_sequence_false_null(self):
     sequence = None
     validation = migrate_script.validate_sequence(sequence)
     self.assertEqual(validation.is_valid, False)
     self.assertEqual(validation.invalid_character, 'Empty sequence')
Пример #2
0
 def test_validate_sequence_false_whith_space(self):
     sequence = 'ATCAGAN ?-'
     validation = migrate_script.validate_sequence(sequence)
     self.assertEqual(validation.is_valid, False)
     self.assertEqual(validation.invalid_character, 'White space')
Пример #3
0
 def test_validate_sequence_false_tilde(self):
     sequence = 'ATCAGAN~?-'
     validation = migrate_script.validate_sequence(sequence)
     self.assertEqual(validation.is_valid, False)
     self.assertEqual(validation.invalid_character, '~')
Пример #4
0
 def test_validate_sequence_true(self):
     sequence = 'ATCAGAN?-'
     validation = migrate_script.validate_sequence(sequence)
     self.assertEqual(validation.is_valid, True)
Пример #5
0
 def test_validate_sequence_false_null(self):
     sequence = None
     validation = migrate_script.validate_sequence(sequence)
     self.assertEqual(validation.is_valid, False)
     self.assertEqual(validation.invalid_character, 'Empty sequence')
Пример #6
0
 def test_validate_sequence_false_tilde(self):
     sequence = 'ATCAGAN~?-'
     validation = migrate_script.validate_sequence(sequence)
     self.assertEqual(validation.is_valid, False)
     self.assertEqual(validation.invalid_character, '~')
Пример #7
0
 def test_validate_sequence_false_whith_space(self):
     sequence = 'ATCAGAN ?-'
     validation = migrate_script.validate_sequence(sequence)
     self.assertEqual(validation.is_valid, False)
     self.assertEqual(validation.invalid_character, 'White space')
Пример #8
0
 def test_validate_sequence_true(self):
     sequence = 'ATCAGAN?-'
     validation = migrate_script.validate_sequence(sequence)
     self.assertEqual(validation.is_valid, True)