#NEWLINE# def test_get_bibtex( ) : #NEWLINE# #INDENT# with requests_mock . mock ( ) as m : #NEWLINE# #INDENT# m . get ( 'http://dx.doi.org/test.doi' , text = 'abc' ) #NEWLINE# entry = utils . get_bibtex ( 'test.doi' ) #NEWLINE# #UNINDENT# assert_that ( m , equal_to ( 'abc' ) )