def test_encode_nosignature(self): self.assertEqual(encode(None), '')
def test_encode(self): encoded = encode('howdy') self.assertEqual(encoded, 'aG93ZHk=')