'Regression test for pull request #4: ensures that files listed in
package_data are included in the manifest even if they\'re not added to
version control.'

def test_package_data_in_sdist(self):

    dist = Distribution(SETUP_ATTRS)
    dist.script_name = 'setup.py'
    cmd = sdist(dist)
    cmd.ensure_finalized()
    quiet()
    try:
        cmd.run()
    finally:
        unquiet()
    manifest = cmd.filelist.files
    self.assertTrue((os.path.join('sdist_test', 'a.txt') in manifest))
    self.assertTrue((os.path.join('sdist_test', 'b.txt') in manifest))
    self.assertTrue((os.path.join('sdist_test', 'c.rst') not in manifest))
