def test_relative_subfolder(self): from requirejs import absolute self.assertEqual( absolute( 'assets/script.js', '/home/user/project/module/', '/home/user/project', ), '/home/user/project/module/assets/script.js')
def test_in_project_subfolder_absolute(self): from requirejs import absolute self.assertEqual( absolute( '/assets/script.js', '/home/user/project/module/', '/home/user/project', ), '/home/user/project/assets/script.js')
def test_in_project_root(self): from requirejs import absolute self.assertEqual( absolute( '/script.js', '/home/user/project/module/', '/home/user/project/', ), '/home/user/project/script.js')
def test_in_caller_parent(self): from requirejs import absolute self.assertEqual( absolute( '../script.js', '/home/user/project/module/', '/home/user/project', ), '/home/user/project/script.js')
def test_caller_sibling(self): from requirejs import absolute self.assertEqual( absolute( 'script.js', '/home/user/project/module/', '/home/user/project', ), '/home/user/project/module/script.js')
def test_relative_subfolder(self): from requirejs import absolute self.assertEqual( absolute( 'assets/script.js', '/home/user/project/module/', '/home/user/project', ), '/home/user/project/module/assets/script.js' )
def test_in_project_subfolder_absolute(self): from requirejs import absolute self.assertEqual( absolute( '/assets/script.js', '/home/user/project/module/', '/home/user/project', ), '/home/user/project/assets/script.js' )
def test_in_project_root(self): from requirejs import absolute self.assertEqual( absolute( '/script.js', '/home/user/project/module/', '/home/user/project/', ), '/home/user/project/script.js' )
def test_in_caller_parent(self): from requirejs import absolute self.assertEqual( absolute( '../script.js', '/home/user/project/module/', '/home/user/project', ), '/home/user/project/script.js' )
def test_caller_sibling(self): from requirejs import absolute self.assertEqual( absolute( 'script.js', '/home/user/project/module/', '/home/user/project', ), '/home/user/project/module/script.js' )