summaryrefslogtreecommitdiffstats
path: root/tools/isolate/isolate_test.py
blob: 3e5eac986f084d8b5b5a7bd33a55fff18a736b0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import unittest

import isolate


class Isolate(unittest.TestCase):
  def test_load_empty(self):
    content = "{}"
    variables = {}
    command, infiles, read_only = isolate.load_isolate(
        content, variables, self.fail)
    self.assertEquals([], command)
    self.assertEquals([], infiles)
    self.assertEquals(None, read_only)


if __name__ == '__main__':
  unittest.main()