def test_basics(self): assert isinstance(self.audioNode, r9Audio.AudioNode) assert r9General.formatPath(self.audioNode.path)==r9General.formatPath(self.bwavpath) assert self.audioNode.audioNode=='bwav_test' assert self.audioNode.sample_width==2 assert self.audioNode.sampleRate==44100 assert self.audioNode.sample_bits==16 assert self.audioNode.channels==1
def test_funcs(self): assert isinstance(self.audioNode, r9Audio.AudioNode) assert r9General.formatPath(self.audioNode.path) == r9General.formatPath(self.bwavpath) assert self.audioNode.isLoaded assert cmds.ls(type='audio')[0] == 'bwav_test' assert self.audioNode.audioNode == 'bwav_test' assert self.audioNode.startFrame == 0 self.audioNode.startFrame = 10 assert self.audioNode.startFrame == 10 assert cmds.getAttr('%s.offset' % self.audioNode.audioNode) == 10 self.audioNode.offsetTime(25) assert self.audioNode.startFrame == 35 assert cmds.getAttr('%s.mute' % self.audioNode.audioNode) == False self.audioNode.mute(True) assert cmds.getAttr('%s.mute' % self.audioNode.audioNode) == True
def setup(self): cmds.file(new=True, f=True) self.path = r9General.formatPath( os.path.join(r9Setup.red9ModulePath(), 'tests', 'testFiles', 'bwav_test.wav'))
def setup(self): cmds.file(new=True, f=True) self.path = r9General.formatPath(os.path.join(r9Setup.red9ModulePath(), 'tests', 'testFiles', 'bwav_test.wav'))