<s> from __future__ import absolute_import <EOL> from sentry . interfaces . breadcrumbs import Breadcrumbs <EOL> from sentry . testutils import TestCase <EOL> class BreadcrumbsTest ( TestCase ) : <EOL> def test_path ( self ) : <EOL> assert Breadcrumbs ( ) . get_path ( ) == '<STR_LIT>' <EOL> def test_simple ( self ) : <EOL> result = Breadcrumbs . to_python ( dict ( values = [ { <EOL> '<STR_LIT:type>' : '<STR_LIT:message>' , <EOL> '<STR_LIT>' : <NUM_LIT> , <EOL> '<STR_LIT:data>' : { <EOL> '<STR_LIT:message>' : '<STR_LIT>' , <EOL> } , <EOL> } ] ) ) <EOL> assert len ( result . values ) == <NUM_LIT:1> <EOL> assert result . values [ <NUM_LIT:0> ] [ '<STR_LIT:type>' ] == '<STR_LIT:message>' <EOL> ts = result . values [ <NUM_LIT:0> ] [ '<STR_LIT>' ] <EOL> assert int ( ts ) == <NUM_LIT> <EOL> assert abs ( ts - <NUM_LIT> ) < <NUM_LIT> <EOL> assert result . values [ <NUM_LIT:0> ] [ '<STR_LIT:data>' ] == { '<STR_LIT:message>' : '<STR_LIT>' } </s>
