1# Copyright 2014 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import os
6import unittest
7
8from tvcm import resource
9
10
11class ResourceUnittest(unittest.TestCase):
12
13  def testBasic(self):
14    r = resource.Resource('/a', '/a/b/c.js')
15    self.assertEquals('b.c', r.name)
16    self.assertEquals(os.path.join('b', 'c.js'), r.relative_path)
17    self.assertEquals('b/c.js', r.unix_style_relative_path)
18