def test_get_used_db(self): assert 'free DB (updated once a month)' == formatter.get_used_db(key=None, db='') assert 'pyup.io\'s DB' == formatter.get_used_db(key='foo', db='') assert 'local DB' == formatter.get_used_db(key=None, db='/usr/local/some-db')
def test_get_used_db(self): assert 'default DB' == formatter.get_used_db(key=None, db='') assert 'pyup.io\'s DB' == formatter.get_used_db(key='foo', db='') assert 'local DB' == formatter.get_used_db(key=None, db='/usr/local/some-db')