def nosetest_get_object_name(): """Tests get_object_filename().""" source_and_object_names = [ ('a.vert', 'a.vert.spv'), ('b.frag', 'b.frag.spv'), ('c.tesc', 'c.tesc.spv'), ('d.tese', 'd.tese.spv'), ('e.geom', 'e.geom.spv'), ('f.comp', 'f.comp.spv'), ('file', 'file.spv'), ('file.', 'file.spv'), ('file.uk', 'file.spv'), ('file.vert.', 'file.vert.spv'), ('file.vert.bla', 'file.vert.spv')] actual_object_names = [ expect.get_object_filename(f[0]) for f in source_and_object_names] expected_object_names = [f[1] for f in source_and_object_names] assert_equal(actual_object_names, expected_object_names)
def nosetest_get_object_name(): """Tests get_object_filename().""" source_and_object_names = [ ("a.vert", "a.vert.spv"), ("b.frag", "b.frag.spv"), ("c.tesc", "c.tesc.spv"), ("d.tese", "d.tese.spv"), ("e.geom", "e.geom.spv"), ("f.comp", "f.comp.spv"), ("file", "file.spv"), ("file.", "file.spv"), ("file.uk", "file.spv"), ("file.vert.", "file.vert.spv"), ("file.vert.bla", "file.vert.spv"), ] actual_object_names = [get_object_filename(f[0]) for f in source_and_object_names] expected_object_names = [f[1] for f in source_and_object_names] assert_equal(actual_object_names, expected_object_names)