Skip to content

Instantly share code, notes, and snippets.

View cleder's full-sized avatar
👽

Christian Ledermann cleder

👽
  • Oomnitza
  • Tuam, Ireland
  • 22:39 (UTC -12:00)
View GitHub Profile
@cleder
cleder / oop.py
Created February 12, 2021 04:21
inheritance
class Foo:
def __init__(self):
print('Foo')
class Bar:
def __init__(self):
print('bar')
class Test(Foo, Bar):
@cleder
cleder / test_unicodeerror.py
Last active February 12, 2021 04:04
unicode error fix
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import mock
post = mock.Mock()
def get_side_effect(value, *args):
if value == 'author':
return u'me'
if value == 'tags':