{"username": "test", "premium": False})
self.assertEqual(
self.signed('/api/epub/grandchild/').status_code,
{"username": "test", "premium": False})
self.assertEqual(
self.signed('/api/epub/grandchild/').status_code,
self.assertEqual(
self.signed_json('/api/username/'),
{"username": "test", "premium": True})
self.assertEqual(
self.signed_json('/api/username/'),
{"username": "test", "premium": True})
with patch('django.core.files.storage.Storage.open',
return_value=StringIO("<epub>")):
self.assertEqual(
with patch('django.core.files.storage.Storage.open',
return_value=StringIO("<epub>")):
self.assertEqual(