def test_is_upgraded_false(self, arg, stub_bpl_solr_200_response, mock_datetime_now): reader = SolrResponseReader(stub_bpl_solr_200_response) assert reader._is_upgraded(arg) == ( None, None, False, None, )
def test_is_upgraded_true(self, stub_bpl_solr_200_response, mock_datetime_now): reader = SolrResponseReader(stub_bpl_solr_200_response) assert reader._is_upgraded("ocn971018433") == ( "971018433", datetime.datetime.now(), True, 2, )