def test_mp3_as_active_true(self): ret = views.get_thumbnail("mp3") self.models.Thumbnail.query.filter_by.assert_called_with(id=4)
def test_active_false(self): ret = views.get_thumbnail("") self.models.Thumbnail.query.filter_by.assert_called_with(id=3)