def test__find_guids(self): ''' Test parallels._find_guids ''' guid_str = textwrap.dedent(''' PARENT_SNAPSHOT_ID SNAPSHOT_ID {a5b8999f-5d95-4aff-82de-e515b0101b66} {a5b8999f-5d95-4aff-82de-e515b0101b66} *{a7345be5-ab66-478c-946e-a6c2caf14909} ''') guids = ['a5b8999f-5d95-4aff-82de-e515b0101b66', 'a7345be5-ab66-478c-946e-a6c2caf14909'] self.assertEqual(parallels._find_guids(guid_str), guids)
def test__find_guids(self): """ Test parallels._find_guids """ guid_str = textwrap.dedent(""" PARENT_SNAPSHOT_ID SNAPSHOT_ID {a5b8999f-5d95-4aff-82de-e515b0101b66} {a5b8999f-5d95-4aff-82de-e515b0101b66} *{a7345be5-ab66-478c-946e-a6c2caf14909} """) guids = [ "a5b8999f-5d95-4aff-82de-e515b0101b66", "a7345be5-ab66-478c-946e-a6c2caf14909", ] self.assertEqual(parallels._find_guids(guid_str), guids)