def METHOD_NAME(self):
    pkg_dir, dist = self.create_dist()
    cmd = build_clib(dist)
    # 'libraries' option must be a list
    with pytest.raises(DistutilsSetupError):
        cmd.check_library_list('foo')
    # each element of 'libraries' must a 2-tuple
    with pytest.raises(DistutilsSetupError):
        cmd.check_library_list(['foo1', 'foo2'])
    # first element of each tuple in 'libraries'
    # must be a string (the library name)
    with pytest.raises(DistutilsSetupError):
        cmd.check_library_list([(1, 'foo1'), ('name', 'foo2')])
    # library name may not contain directory separators
    with pytest.raises(DistutilsSetupError):
        cmd.check_library_list(
            [('name', 'foo1'), ('another/name', 'foo2')],
        )
    # second element of each tuple must be a dictionary (build info)
    with pytest.raises(DistutilsSetupError):
        cmd.check_library_list(
            [('name', {}), ('another', 'foo2')],
        )
    # those work
    libs = [('name', {}), ('name', {'ok': 'good'})]
    cmd.check_library_list(libs)