Exemple #1
0
    def test_hash(self):
        path = derive_meme_path('foo', 'bar', 'baz', 'jpg')
        self.assertTrue(path.endswith('04a4ab04fa79a4d325adc397d9b3e6bd.jpg'))

        path = derive_meme_path('foo', 'bar', 'baz', 'png')
        self.assertTrue(path.endswith('04a4ab04fa79a4d325adc397d9b3e6bd.png'))
Exemple #2
0
 def test_emojis(self):
     path = derive_meme_path('success-kid', u'\xf0', u'\xf0', 'jpg')
     self.assertTrue(path.endswith('42025951d83a7977a4e5843c7c1d7e15.jpg'))