def test_successful_group_creation(self, _): # Test self.assertIsNone( group_create('test_group_2', [nick_to_pub_key("Alice")], *self.args)) self.assertEqual(self.queues[COMMAND_PACKET_QUEUE].qsize(), 1) self.assertEqual(self.queues[RELAY_PACKET_QUEUE].qsize(), 1)
def test_successful_empty_group_creation(self): self.assertIsNone(group_create('test_group_2', [], *self.args)) self.assertEqual(self.queues[COMMAND_PACKET_QUEUE].qsize(), 1) self.assertEqual(self.queues[RELAY_PACKET_QUEUE].qsize(), 0)