def test_input_file_integration(self): t = NamedTemporaryFile() t.write('lalalalalalalalalala') t.flush() m = sendAudio() m.audio = t.name self.assertTrue(isinstance(m._to_raw(strict=False)['audio'], file))
def test_input_file_integration(self): t = NamedTemporaryFile() t.write('lalalalalalalalalala') t.flush() m = sendAudio() m.audio = t.name self.assertEquals({'audio': 'lalalalalalalalalala'}, m._to_raw(strict=False))