Пример #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
 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
 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'])