Beispiel #1
0
 def testSetupCache(self, build_info):
     build_info.CachePath.return_value = '/test/cache/path'
     sc = file_system.SetupCache([], build_info)
     sc.Run()
     self.assertTrue(file_system.os.path.exists('/test/cache/path'))
Beispiel #2
0
 def testSetupCacheValidate(self):
     sc = file_system.SetupCache('String', None)
     self.assertRaises(file_system.ValidationError, sc.Validate)
     sc = file_system.SetupCache([], None)
     sc.Validate()
Beispiel #3
0
 def testSetupCache(self, build_info, create):
     build_info.CachePath.return_value = '/test/cache/path'
     file_system.SetupCache([], build_info).Run()
     create.assert_called_with('/test/cache/path')