2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5 """Tests for the parse_deps module."""
10 from tvcm import project
11 from tvcm import parse_deps
13 class CalcLoadSequenceTest(unittest.TestCase):
14 def test_one_toplevel_nodeps(self):
15 load_sequence = parse_deps.calc_load_sequence_internal(
16 [os.path.join('tvcm', 'guid.js')], project.Project())
17 name_sequence = [x.name for x in load_sequence]
18 self.assertEquals(['tvcm.guid'], name_sequence)
21 if __name__ == '__main__':