def METHOD_NAME(self):
    pkg_dir, dist = self.create_dist()
    cmd = build_clib(dist)
    # "in 'libraries' option 'sources' must be present and must be
    # a list of source filenames
    cmd.libraries = [('name', {})]
    with pytest.raises(DistutilsSetupError):
        cmd.get_source_files()
    cmd.libraries = [('name', {'sources': 1})]
    with pytest.raises(DistutilsSetupError):
        cmd.get_source_files()
    cmd.libraries = [('name', {'sources': ['a', 'b']})]
    assert cmd.get_source_files() == ['a', 'b']
    cmd.libraries = [('name', {'sources': ('a', 'b')})]
    assert cmd.get_source_files() == ['a', 'b']
    cmd.libraries = [
        ('name', {'sources': ('a', 'b')}),
        ('name2', {'sources': ['c', 'd']}),
    ]
    assert cmd.get_source_files() == ['a', 'b', 'c', 'd']