Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/q/i/qiime-HEAD/tests/test_util.py   qiime(Download)
    def test_init(self):
        """FunctionWithParams __init__ should be successful."""
        x = self.FWP({'x': 3})
        self.assertEqual(x.Name, 'FWP')
        self.assertEqual(x.Params, {'x': 3})
 
    def test_str(self):
        """FunctionWithParams __str__ should produce expected string"""
        x = self.FWP({'x': 3})
    def test_call(self):
        """FunctionWithParams __str__ should produce expected string"""
        x = self.FWP({'x': 3})
        self.assertEqual(x(), 3)
 
    def test_formatResult(self):
        """FunctionWithParams formatResult should produce expected format"""
        x = self.FWP({'x': 3})