Пример #1
0
 def test_saved_equals_original_ascii(self):
     '''Tests if saved ASCII file is identical to the loaded one'''
     stl = Stl(asset('block.stl'))
     stl.write_ascii(asset('block_ascii.stl'))
     assert filecmp.cmp(asset('block.stl'), asset('block_ascii.stl'))
Пример #2
0
 def test_save_load_unicode(self):
     '''Tests saving and loading files with Unicode filenames'''
     stl1 = Stl(asset('block.stl'))
     stl1.write_ascii(asset(u'block_ěščřž.stl'))
     stl2 = Stl(asset(u'block_ěščřž.stl'))