def test_goto_definition_at_zero():
 assert (Script('a', 1, 1).goto_definitions() == [])
 s = Script('str', 1, 1).goto_definitions()
 assert (len(s) == 1)
 assert (list(s)[0].description == 'class str')
 assert (Script('', 1, 0).goto_definitions() == [])

def test_goto_definition_at_zero ( ) : assert ( Script ( 'a' , 1 , 1 ) . goto_definitions ( ) == [ ] ) s = Script ( 'str' , 1 , 1 ) . goto_definitions ( ) assert ( len ( s ) == 1 ) assert ( list ( s ) [ 0 ] . description == 'class str' ) assert ( Script ( '' , 1 , 0 ) . goto_definitions ( ) == [ ] )
at zero usually sometimes raises unicode issues .