Show More
@@ -593,5 +593,17 b' class TestView(ClusterTestCase, ParametricTestCase):' | |||
|
593 | 593 | self.assertTrue("data" in output) |
|
594 | 594 | data = output['data'] |
|
595 | 595 | self.assertTrue("image/png" in data) |
|
596 | ||
|
597 | def test_func_default_func(self): | |
|
598 | """interactively defined function as apply func default""" | |
|
599 | def foo(): | |
|
600 | return 'foo' | |
|
601 | ||
|
602 | def bar(f=foo): | |
|
603 | return f() | |
|
596 | 604 | |
|
605 | view = self.client[-1] | |
|
606 | ar = view.apply_async(bar) | |
|
607 | r = ar.get(10) | |
|
608 | self.assertEquals(r, 'foo') | |
|
597 | 609 |
General Comments 0
You need to be logged in to leave comments.
Login now