def test_compiler_args(self):
    self._create_fake_thrifty_tool()
    target = self.make_target('src/thrifty:simple-thrifty-target', JavaThriftyLibrary, sources=['foo.thrift'])
    context = self.context(target_roots=[target])
    task = self.create_task(context)
    self.assertEqual(['--out={}'.format(self.TARGET_WORKDIR), '--path={}/src/thrifty'.format(self.build_root), 'src/thrifty/foo.thrift'], task.format_args_for_target(target, self.TARGET_WORKDIR))
def test_compiler_args(self):
    self._create_fake_thrifty_tool()
    target = self.make_target('src/thrifty:simple-thrifty-target', JavaThriftyLibrary, sources=['foo.thrift'])
    context = self.context(target_roots=[target])
    task = self.create_task(context)
    self.assertEqual(['--out={}'.format(self.TARGET_WORKDIR), '--path={}/src/thrifty'.format(self.build_root), 'src/thrifty/foo.thrift'], task.format_args_for_target(target, self.TARGET_WORKDIR))