def test_named():
 t = usertypes.Timer(name='foobar')
 assert (t._name == 'foobar')
 assert (t.objectName() == 'foobar')
 assert (repr(t) == "<qutebrowser.utils.usertypes.Timer name='foobar'>")

def test_named ( ) : t = usertypes . Timer ( name = 'foobar' ) assert ( t . _name == 'foobar' ) assert ( t . objectName ( ) == 'foobar' ) assert ( repr ( t ) == "<qutebrowser.utils.usertypes.Timer name='foobar'>" )
make sure the name is set correctly .