hagsteel / swampdragon

swampdragon
Other
557 stars 74 forks source link

unit test does not support for auth #205

Open SparksFyz opened 8 years ago

SparksFyz commented 8 years ago

I met a problem when I write unit test code. DragonTestCase can not mock the process of auth.

The test code is like this:

self.router.subscribe(**{'channel': "xxx", 'auth': token})

anyone met the same problem?