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