Exemplo n.º 1
0
def test_get_name():
    fn = nglview.datafiles.PDB
    assert_equal(py_utils.get_name(object, dict(name='hello')), 'hello')
    assert_equal(py_utils.get_name(nglview.FileStructure(fn), dict()),
                 'nglview.adaptor.FileStructure')
Exemplo n.º 2
0
def test_get_name():
    fn = nglview.datafiles.PDB
    nt.assert_equal(py_utils.get_name(object, dict(name='hello')), 'hello')
    nt.assert_equal(py_utils.get_name(nglview.FileStructure(fn), dict()),
            'nglview.adaptor.FileStructure')