~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_strace.py

  • Committer: Vincent Ladeuil
  • Date: 2007-07-02 14:09:40 UTC
  • mto: (2584.1.1 Aaron's integration)
  • mto: This revision was merged to the branch mainline in revision 2585.
  • Revision ID: v.ladeuil+lp@free.fr-20070702140940-oz36hfh6hcihlgbj
Fix typo, add comment, following Martin's review.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
        def function(positional, *args, **kwargs):
53
53
            output.append((positional, args, kwargs))
54
54
        strace(function, "a", "b", c="c",
55
 
               strace_follow_childrens=False)
 
55
               strace_follow_children=False)
56
56
        self.assertEqual([("a", ("b",), {"c":"c"})], output)
57
57
 
58
58
    def test_strace_callable_result(self):
59
59
        def function():
60
60
            return "foo"
61
61
        result, strace_result = strace(function,
62
 
                                       strace_follow_childrens=False)
 
62
                                       strace_follow_children=False)
63
63
        self.assertEqual("foo", result)
64
64
        self.assertIsInstance(strace_result, StraceResult)
65
65
 
68
68
        def function():
69
69
            self.build_tree(['myfile'])
70
70
        _, result = strace(function,
71
 
                           strace_follow_childrens=False)
 
71
                           strace_follow_children=False)
72
72
        self.assertContainsRe(result.raw_log, 'myfile')