Exemple #1
0
 def test_resource_url_from_syspath(self):
     from pck import Main
     self.assert_(Main.getResource('Main.txt'))
Exemple #2
0
 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())
Exemple #3
0
 def test_resource_stream_from_syspath(self):
     from pck import Main
     self.assert_(Main.getResourceAsStream('Main.txt'))