]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blob - src/allmydata/test/test_encode.py
move all packages into src/, fix allmydata.Crypto build. Now you must perform a ...
[tahoe-lafs/tahoe-lafs.git] / src / allmydata / test / test_encode.py
1 #! /usr/bin/python
2
3 from twisted.trial import unittest
4 from twisted.internet import defer
5 from allmydata import encode_new
6 from cStringIO import StringIO
7
8 class MyEncoder(encode_new.Encoder):
9     def send(self, share_num, methname, *args, **kwargs):
10         return defer.succeed(None)
11
12 class Encode(unittest.TestCase):
13     def OFFtest_1(self):
14         e = MyEncoder()
15         data = StringIO("some data to encode\n")
16         e.setup(data)
17         d = e.start()
18         return d
19