def test_resource_url_from_syspath(self): from pck import Main self.assert_(Main.getResource('Main.txt'))
def test_url_from_resource_from_syspath(self): from pck import Main # Need to test this doesn't fail because of '\' chars in the path # Really only a problem on Windows self.assert_(Main.getResource('Main.txt').toURI())
def test_resource_stream_from_syspath(self): from pck import Main self.assert_(Main.getResourceAsStream('Main.txt'))