Lines Matching refs:tool
32 from webkitpy.tool.mocktool import MockOptions, MockTool
33 from webkitpy.tool.steps.cleanworkingdirectory import CleanWorkingDirectory
38 tool = MockTool()
39 step = CleanWorkingDirectory(tool, MockOptions(clean=True, force_clean=False))
41 self.assertEqual(tool._scm.ensure_no_local_commits.call_count, 1)
42 self.assertEqual(tool._scm.ensure_clean_working_directory.call_count, 1)
45 tool = MockTool()
46 step = CleanWorkingDirectory(tool, MockOptions(clean=False))
48 self.assertEqual(tool._scm.ensure_no_local_commits.call_count, 0)
49 self.assertEqual(tool._scm.ensure_clean_working_directory.call_count, 0)