Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 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()
Exemplo n.º 4
0
 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)
Exemplo n.º 5
0
 def setUp(self):
     ModelTestCase.setUp(self)
     self.user = User.create('Foo', '*****@*****.**')
Exemplo n.º 6
0
 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)
Exemplo n.º 7
0
 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)