コード例 #1
0
    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))
コード例 #2
0
    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))
コード例 #3
0
    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))