

def test_passes_fileset_with_spec_through(self):
    sf.create_file('foo/a.txt', 'a_contents')
    fileset = FilesetWithSpec('foo', 'a.txt', (lambda : ['a.txt']))
    sf = SourcesField(sources=fileset)
    self.assertIs(fileset, sf.sources)
    self.assertEqual(['a.txt'], list(sf.source_paths))

dataset/ETHPy150Open pantsbuild/pants/tests/python/pants_test/source/test_payload_fields.py PayloadTest.test_passes_fileset_with_spec_through/VarMisuse@10/19 `self`->`sf`