We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64de2e4 commit 8dd27e6Copy full SHA for 8dd27e6
eip_tests.py
@@ -0,0 +1,21 @@
1
+import random
2
+import unittest
3
+import peiping
4
+
5
+class TestEip(unittest.TestCase):
6
7
+ def simple_generator(self):
8
+ for i in range(10):
9
+ yield i
10
11
+ def read_file(self, filename):
12
+ file = open(filename, 'rb')
13
+ return file.read()
14
15
+ def test_0(self):
16
+ print peiping.endpoint(self.simple_generator()).to("")
17
+ peiping.run()
18
19
20
+if __name__ == '__main__':
21
+ unittest.main()
peiping.py
@@ -0,0 +1,13 @@
+class Endpoint():
+ def to(self, object):
+ print type(object)
+ if type(object) is str:
+ endpoint = endpoint_factory(str)
+ pass
+def endpoint(object):
+ return Endpoint()
+def run():
+ for route in routes:
+ route.run()
0 commit comments