Ejemplo n.º 1
0
 def test_read(self, mock_open, mock_update):
     """Test reading mock indata and check update arguments"""
     mock_open.return_value = self.metadata
     cfg = register_metadata("foo/bar", config = {})
     args, kw = mock_update.call_args
     self.assertDictEqual(args[0]['bio.ngs.tools.sratools']['_run2sample'], {'Run2S1': 'Sample1', 'Run1S2': 'Sample2', 'Run1S1': 'Sample1'})
     self.assertEqual(args[0]['bio.ngs.tools.sratools']['_datadir'], 'foo')
Ejemplo n.º 2
0
 def test_register_metadata(self):
     """Test registering metadata for non-existent file"""
     register_metadata("foo.csv", config = {})