@skipif(sys.version_info < (3,), reason='not Python 3.x')
def test_classdef_some_more():
    code = "class Foo(Bar, *bases, metaclass=X, **extra_kwargs): pass"
    node = commonast.parse(code).body_nodes[0]
    assert isinstance(node, commonast.ClassDef)
    
    assert len(node.arg_nodes) == 2
    assert len(node.kwarg_nodes) == 2
    #
    assert node.arg_nodes[0].name == 'Bar'
    assert isinstance(node.arg_nodes[1], commonast.Starred)
    assert node.arg_nodes[1].value_node.name == 'bases'
    # kwarg nodes are Keywords
    assert node.kwarg_nodes[0].name == 'metaclass'
    assert node.kwarg_nodes[0].value_node.name == 'X'  # Name node
    assert node.kwarg_nodes[1].name is None 
    assert node.kwarg_nodes[1].value_node.name == 'extra_kwargs'
dataset/ETHPy150Open zoofIO/flexx/flexx/pyscript/tests/test_commonast.py/test_classdef_some_more/original