def test_can_pull_out_non_dependent_values(self):

    def f(x):
        summary.summary((x ** 2), name='y')
        return x
    (_, summaries) = summary.get_summaries(f)(2.0)
    self.assertDictEqual(dict(y=4.0), summaries)
def test_can_pull_out_non_dependent_values(self):

    def f(x):
        summary.summary((x ** 2), name='y')
        return x
    (_, summaries) = summary.get_summaries(f)(2.0)
    self.assertDictEqual(dict(y=4.0), summaries)