示例#1
0
文件: test.py 项目: edsu/dflat
 def test_status(self):
     dflat.init('dflat-test')
     dflat.checkout('dflat-test')
     with open('dflat-test/v002/full/producer/d', 'w') as f:
         f.write('foo')
     status = dflat.status('dflat-test')
     self.assertTrue('producer/d' in status['added'])
示例#2
0
文件: test.py 项目: Segerberg/dflat
 def test_status(self):
     dflat.init('dflat-test')
     dflat.checkout('dflat-test')
     with open('dflat-test/v002/full/producer/d', 'w') as f:
         f.write('foo')
     status = dflat.status('dflat-test')
     self.assertTrue('producer/d' in status['added'])
示例#3
0
文件: test.py 项目: anarchivist/dflat
 def test_status(self):
     dflat.init('dflat-test')
     dflat.checkout('dflat-test')
     open('dflat-test/v002/full/data/d', 'w').write('foo')
     status = dflat.status('dflat-test')
     self.assertTrue('data/d' in status['added'])