Beispiel #1
0
 def gitstatus_path( self ):
     """Returns absolute path to collection .gitstatus cache file.
     
     >>> DDRLocalCollection.collection_path(None, 'ddr', 'testing', 123)
     '/var/www/media/base/ddr-test-123/.gitstatus'
     """
     return gitstatus.path(self.path)
 def test_path(self):
     out = gitstatus.path(BASEDIR, '/media/LABEL/ddr/ddr-test-123')
     expected = os.path.join(BASEDIR, 'tmp', 'ddr-test-123.status')
     self.assertEqual(expected, out)