comparison sat/test/test_memory_crypto.py @ 2624:56f94936df1e

code style reformatting using black
author Goffi <goffi@goffi.org>
date Wed, 27 Jun 2018 20:14:46 +0200
parents 26edcf3a30eb
children ab2696e34d29
comparison
equal deleted inserted replaced
2623:49533de4540b 2624:56f94936df1e
28 from twisted.internet import defer 28 from twisted.internet import defer
29 29
30 30
31 def getRandomUnicode(len): 31 def getRandomUnicode(len):
32 """Return a random unicode string""" 32 """Return a random unicode string"""
33 return u''.join(random.choice(string.letters + u"éáúóâêûôßüöä") for i in xrange(len)) 33 return u"".join(random.choice(string.letters + u"éáúóâêûôßüöä") for i in xrange(len))
34 34
35 35
36 class CryptoTest(helpers.SatTestCase): 36 class CryptoTest(helpers.SatTestCase):
37
38 def setUp(self): 37 def setUp(self):
39 self.host = helpers.FakeSAT() 38 self.host = helpers.FakeSAT()
40 39
41 def test_encrypt_decrypt(self): 40 def test_encrypt_decrypt(self):
42 d_list = [] 41 d_list = []