Ejemplo n.º 1
0
 def test_load_manifest_good(self):
   data = {
     u'command': [u'foo', u'bar'],
     u'files': {
       u'a': {
         u'link': u'somewhere',
         u'mode': 123,
         u'timestamp': 456,
       },
       u'b': {
         u'mode': 123,
         u'sha-1': u'0123456789abcdef0123456789abcdef01234567'
       }
     },
     u'includes': [u'0123456789abcdef0123456789abcdef01234567'],
     u'os': run_test_from_archive.get_flavor(),
     u'read_only': False,
     u'relative_cwd': u'somewhere_else'
   }
   m = run_test_from_archive.load_manifest(json.dumps(data))
   self.assertEquals(data, m)
Ejemplo n.º 2
0
 def test_load_manifest_os_only(self):
   data = {
     u'os': run_test_from_archive.get_flavor(),
   }
   m = run_test_from_archive.load_manifest(json.dumps(data))
   self.assertEquals(data, m)