def setUp(self): super(TestChatListeners, self).setUp() self.user1 = User.create(u'u1', u'u1@foo') self.user2 = User.create(u'u2', u'u2@foo') self.user3 = User.create(u'u3', u'u3@foo') self.chat = Chat.create(title=u'chat 1') self.chat.add_participant(self.user1.address) self.chat.add_participant(self.user2.address) self.chat.add_participant(self.user3.address)
def post(self): delete_key = self.request.get('key').strip() nick = self.request.get('nick').strip() address = self.request.get('address').strip() if delete_key != '': User.murder(delete_key) elif address: User.create(nick, address) self.get()
def test_default_email_addresses(self): '''Empty list of addresses when addresses are not assigned''' user = User.create('A', 'B') self.assertEqual([], user.email_addresses)
def setUp(self): ModelTestCase.setUp(self) self.user = User.create('Foo', '*****@*****.**')
def setUp(self): super(TestChatTaglines, self).setUp() self.user1 = User.create(u'u1', u'u1@foo') self.chat = Chat.create(title=u'chat 1') self.chat.add_participant(self.user1.address)