def test_generate_sequence_structure_will_generate_sequences_and_shots_with_correct_number_of_tracks(self):
    'testing if a proper sequence structure will be generated by using\n        the generate_sequence_structure() method with correct number of tracks\n        '
    path = os.path.abspath('./test_data/test_v001.xml')
    sm = pymel.core.PyNode('sequenceManager1')
    sm.from_xml(path)
    seq1 = sm.sequences.get()[0]
    shots = seq1.shots.get()
    shot1 = shots[0]
    shot2 = shots[1]
    shot3 = shots[2]
    self.assertEqual(shot1.track.get(), 1)
    self.assertEqual(shot2.track.get(), 1)
    self.assertEqual(shot3.track.get(), 1)
    seq = sm.generate_sequence_structure()
    tracks = seq.media.video.tracks
    self.assertEqual(len(tracks), 1)
    track1 = tracks[0]
    clips = track1.clips
    self.assertEqual(len(clips), 3)
testing if a proper sequence structure will be generated by using
the generate_sequence_structure() method with correct number of tracks
def test_generate_sequence_structure_will_generate_sequences_and_shots_with_correct_number_of_tracks(self):
    'testing if a proper sequence structure will be generated by using\n        the generate_sequence_structure() method with correct number of tracks\n        '
    path = os.path.abspath('./test_data/test_v001.xml')
    sm = pymel.core.PyNode('sequenceManager1')
    sm.from_xml(path)
    seq1 = sm.sequences.get()[0]
    shots = seq1.shots.get()
    shot1 = shots[0]
    shot2 = shots[1]
    shot3 = shots[2]
    self.assertEqual(shot1.track.get(), 1)
    self.assertEqual(shot2.track.get(), 1)
    self.assertEqual(shot3.track.get(), 1)
    seq = sm.generate_sequence_structure()
    tracks = seq.media.video.tracks
    self.assertEqual(len(tracks), 1)
    track1 = tracks[0]
    clips = track1.clips
    self.assertEqual(len(clips), 3)