Esempio n. 1
0
 def test_same_user_id_and_blocked_user_id(self):
     block = blocks.Block(self.m_manager,
                          user_id=self.block.user_id,
                          blocked_user_id=self.block.blocked_user_id)
     self.assertEqual(self.block, block)
Esempio n. 2
0
 def setUp(self):
     self.m_manager = mock.Mock()
     self.block = blocks.Block(self.m_manager,
                               user_id='foo',
                               blocked_user_id='bar')
Esempio n. 3
0
 def test_different_user_id(self):
     block = blocks.Block(self.m_manager,
                          user_id='qux',
                          blocked_user_id=self.block.blocked_user_id)
     self.assertNotEqual(self.block, block)