We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 087b6ca commit 80fa583Copy full SHA for 80fa583
test.py
@@ -58,6 +58,13 @@ def test_make_bag(self):
58
self.assertTrue('Payload-Oxum: 991765.5' in bag_info_txt)
59
self.assertTrue('Bag-Software-Agent: bagit.py <http://github.com/edsu/bagit' in bag_info_txt)
60
61
+ def test_make_bag_with_data_dir_present(self):
62
+ os.mkdir(j(self.tmpdir, 'data'))
63
+ bag = bagit.make_bag(self.tmpdir)
64
+
65
+ # data dir should now contain another data dir
66
+ self.assertTrue(os.path.isdir(j(self.tmpdir, 'data', 'data')))
67
68
def test_bag_class(self):
69
info = {'Contact-Email': 'ehs@pobox.com'}
70
bag = bagit.make_bag(self.tmpdir, bag_info=info)
0 commit comments