Beispiel #1
0
 def test_differential_format(self):
     filepath = self.get_data_path('differentials.tsv')
     temp_dir = self.temp_dir.name
     shutil.copy(filepath, os.path.join(temp_dir, 'differentials.tsv'))
     format = DifferentialDirectoryFormat(temp_dir, mode='r')
     format.validate()
     self.assertTrue(True)
Beispiel #2
0
    def test_differential_format_bad_type(self):
        filepath = self.get_data_path('bad_differential.tsv')
        temp_dir = self.temp_dir.name
        shutil.copy(filepath, os.path.join(temp_dir, 'differentials.tsv'))

        with self.assertRaisesRegex(ValidationError, 'numeric'):
            format = DifferentialDirectoryFormat(temp_dir, mode='r')
            format.validate()